Skip to content

Commit

Permalink
tinyMCE - unwanted CMS Content dropdown button
Browse files Browse the repository at this point in the history
  • Loading branch information
wojsmol committed Aug 19, 2018
1 parent 302f10b commit 012b4b9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build/media_src/editors/tinymce/js/tinymce.es6.js
Expand Up @@ -82,14 +82,16 @@
buttonValues.push(tmp);
});

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

// Create a new instance
// eslint-disable-next-line no-undef
Expand Down

0 comments on commit 012b4b9

Please sign in to comment.