How do I add a listbox to the TinyMCE editor?
In the TinyMCE plugin i wrote, my listbox wraps selected text in HTML, i do that like this.. onselect : function(v) { // Set focus to WordPress editor ed.focus(); // Get selected text var sel_txt = ed.selection.getContent(); // If no text selected if( ” == sel_txt ) return null; var active_style = toggle_styles[v]; if( ‘undefined’ … Read more