Ich brauche noch einen Drop-Down-Menü neben "Tools" in TinyMCE 4 hinzuzufügen: dieseTinyMCE 4 Add-Drop-Down-Menü Menüleiste
Die nächste Lösung, die ich gefunden war:
// Adds a custom menu item to the editor that inserts contents when clicked
// The context option allows you to add the menu item to an existing default menu
tinymce.init({
...
setup: function(ed) {
ed.addMenuItem('example', {
text: 'My menu item',
context: 'tools',
onclick: function() {
ed.insertContent('Hello world!!');
}
});
}
});
Es wird jedoch nur ein Element zum bereits vorhandenen Menü "Extras" hinzugefügt.
Super, das ist genau das, was ich gebraucht habe. Danke vielmals! – Tomarz
................ – ghostCoder