Skip to content Skip to sidebar Skip to footer

TinyMCE Custom Button With Popup

I'm adding a button to my TinyMCE setup like this: setup : function(ed) { // Add a custom button ed.addButton('mybutton', { title : 'My button',

Solution 1:

There are 2 options:

First you can set or disable all css for the regular popup.

Second option is to open a classical popup or modal dialogue of your own using a button click or a click onto a specified element in the editor. When closing the popup you can write something back to the editor using a command like

tinyMCE.get("my_editor_id").execCommand("mceInsertContent",false,'whatever');

Post a Comment for "TinyMCE Custom Button With Popup"