TinyMCE Plugin Parameter

The first few you listed are not WordPress specific, and information about them can be found as follows: inlinepopups tabfocus paste media fullscreen As for the WordPress specific plugins, their source code is here (trac). There are no comments, but here’s my take based on a very cursory read through: wordpress: seems to setup the … Read more

Change TinyMCE Block Format Labels

I would use the hook tiny_mce_before_init : function wpse_106063_tinymce($arr){ $arr[‘theme_advanced_blockformats’] = ‘h1,h2,h3,h4’; $style_formats = array( array(‘title’ => ‘title’, ‘block’ => ‘h1’)), // etc ); $arr[‘style_formats’] = json_encode( $style_formats ); return $arr; } add_filter(‘tiny_mce_before_init’, ‘wpse_106063_tinymce’); Hope it helps. EDIT: add something that should work, not tested. source

all tincymce’s switch when updating page after changing from html to text in custom metabox

This is, as you guessed, default behavior. It’s stored in the wp_usermeta table for each user in the wp_user-settings meta_key and does not differentiate between different editor instances. On a side note, the tinymce version of wp_edior() does not cooperate very well with being inside a meta box. Especially if the metabox is moved, or … Read more

Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)

I’m not sure if there is an official way to do this in TinyMCE 4.0 or not, I can’t find any references in their docs or on WordPress – below is a PHP method you could use to do this: function myformatTinyMCE($in) { $del_buttons = array(‘bold’, ‘italic’, ‘strikethrough’); $temp = explode(‘,’, $in[‘toolbar1’]); foreach($del_buttons as $del){ … Read more

Listbox return wrong value in WordPress 3.9

Well after long research I find out solution, var menuval=[]; var insertVar = function (val) { return function () { editor.insertContent(val); } }; for (var i = 0; i < SHORTCODES.length; i++) { var _id = SHORTCODES[i]; var _code = SHORTCODE_EXE[i]; var variable = insertVar(_code); //alert(_id+’ ‘+ SHORTCODES[i]+’ ‘+SHORTCODE_EXE[i]); menuval.push({text: _id, onclick: variable }); }