I have 4 different plugins for handling images in TinyMCE 4, plus a lot of other plugins. I would like to make things a lot more tidy/ clean.
Is is a way to add existing plugins to a dropdown menu in TinyMCE 4?
I know of this method to create dropdowns for new stuff: https://www.tinymce.com/docs/demo/custom-toolbar-menu-button/
In the init:
setup: function(editor) {
editor.addButton('mybutton', {
type: 'menubutton',
text: 'My button',
icon: false,
menu: [{
text: 'Menu item 1',
onclick: function() {
editor.insertContent(' <strong>Menu item 1 here!</strong> ');
}
}, {
text: 'Menu item 2',
onclick: function() {
editor.insertContent(' <em>Menu item 2 here!</em> ');
}
}]
});
},
BUT I do not understand how to add plugins in there. Like the plugin "image" or "link".
Anybody knows?