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

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

Using main style.css with add_editor_style

The simplest answer is: you can use whatever stylesheet you want for the editor. editor-style.css is just the default stylesheet loaded if none is passed to add_editor_style(). This will load the specified stylesheet: add_editor_style( ‘some-stylsheet.css’ ); This will load editor-style.css: add_editor_style(); Use whatever better fits your needs. By the way, it is better practice to … Read more

TinyMCE is broken

Solved it by adding this to wp-config.php, which kills the js combining. define( ‘CONCATENATE_SCRIPTS’, false );

wordpress 3.5 tinymce height

@frabiacca: I’m not sure if you meant the toolbar menu, like Circle B showed or the height of the writing place. If it’s the latter you can : do it easily by gragging the bottom right corner or the textarea or clicking on the fullscreen button of the editor 😀 do it programmatically codex.wordpress.org/TinyMCE function … Read more

Insert text a cursor position in to TinyMCE text editor

To test this, I’ve added a button to one of the other meta boxes on the post edit/new screen, with an id of addtxtbtn. On click, I grabbed the textareas inside the #wp-content-editor-container, which is the default wrapper for the default WP Editor instance. You might need to alter this, if you got different MarkUp. … Read more