J4 Issue ?
avatar schnuti
schnuti
19 Aug 2018

Steps to reproduce the issue

If you have a form with a "custom" editor field you see it.
Otherwise edit the article form in administrator/components/com_content/forms/article.xml

  • Change buttons="true" to buttons="false" for field-name articletext
  • Open New Article
  • The CMS Content dropdown button is there with an empty dropdown list.

tiny_mce_cms_button
Example:

      <field
         name="descripton" 
         type="editor" 
         ==>    buttons="false" 
         filter="JComponentHelper::filterText"
         height="200" 
         label="COM_MYCOMP_FIELD_DESCRIPPTION_LABEL"/>

Expected result

No button

Actual result

Button!

Comment

The height set in the form field above is of no use as it is overridden by a system wide parameter set in the tinyMCE plugin. That behaviour should be removed! I have to use a system plugin to change to the expected height.

avatar schnuti schnuti - open - 19 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2018
Category Plugins
avatar brianteeman brianteeman - change - 19 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 19 Aug 2018
avatar brianteeman
brianteeman - comment - 19 Aug 2018

This a js issue in build\media_src\editors\tinymce\js\tinymce.es6.js

The button is always created even if you don't have any buttons enabled. Sorry but I have no idea how to fix that in js

avatar dgrammatiko
dgrammatiko - comment - 19 Aug 2018

@brianteeman this should fix it:

      if (buttonValues.length) {
        options.setup = (editor) => {
          editor.addButton('jxtdbuttons', {
            type: 'menubutton',
            text: Joomla.JText._('PLG_TINY_CORE_BUTTONS'),
            icon: 'none icon-joomla',
            menu: buttonValues,
          });
        };
      }

Line 85 onwards

avatar brianteeman brianteeman - change - 19 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-19 15:01:40
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 19 Aug 2018

Closed see #21725

avatar brianteeman brianteeman - close - 19 Aug 2018

Add a Comment

Login with GitHub to post a comment