【问题标题】:How to add parameters to plugins in Joomla?如何在 Joomla 中为插件添加参数?
【发布时间】:2019-03-04 09:43:20
【问题描述】:

我在 Joomla 中使用了一些带有参数的插件。 当它不是 Joomla 时,在 index.html 中我将这些参数设置为:

<script>
      tinymce.init({
            selector: '#tinymce',
            plugins: 'pluginName',
            pluginName: {
                parameterName: "value"
            }
      });
</script>

但不幸的是,Joomla 中没有 tinyMCE.init。 我试图在/plugins/editors/tinymce/tinymce.php 中找到此插件设置的位置,但找不到。

有没有办法在任何 Joomla 文件中添加插件设置/参数?

【问题讨论】:

    标签: joomla tinymce joomla3.0


    【解决方案1】:

    发现可以在$scriptOptions变量中设置参数。 /plugins/editors/tinymce/tinymce.php ~625 行。 如果插件具有如下参数结构:

    pluginName: {
        parameterName: "value"
    }
    

    它必须写在那里,如:'pluginName' =&gt; array(parameterName =&gt; 'value'),

    插件本身可以通过Joomla管理面板添加:Extensions -&gt; Plugins -&gt; Editor - TinyMCE -&gt; Custom Plugin

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-08
      • 2014-02-09
      • 2012-10-18
      • 2011-10-16
      • 2011-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多