muszę dodać kolejny spadek menu obok "Narzędzia" pozycja w TinyMCE 4:TinyMCE 4 add rozwijane menu do paska menu
Najbliższym rozwiązaniem znalazłem to:
// 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!!');
}
});
}
});
Ale dodaje tylko element do już istniejącego menu "Narzędzia".
Wspaniale, to jest dokładnie to, czego potrzebowałem. Wielkie dzięki! – Tomarz
................ – ghostCoder