customize file menu in tinyMCE -
is possible add new menu items in file menu of tinymce cutomization? have found solution edit or disable file menu. i.e
tinymce.init({ selector: "textarea", menubar: "edit format" }); disable menubar: tinymce.init({ selector: "textarea", menubar: false }); but no way cutomize hat file menu idea?
possible duplicate: is possible have custom functions , commands in tinymce4 menubar?
// adds custom menu item editor inserts contents when clicked // context option allows add menu item existing default menu tinymce.init({ ... setup: function(ed) { ed.addmenuitem('example', { title: 'my menu item', context: 'tools', onclick: function() { ed.insertcontent('hello world!!'); } }); } });
Comments
Post a Comment