I have this nice little function to remove buttons from the tinyMCE editor in WordPress, so far I’ve been able to remove most of the ones I need to.

function custom_disable_mce_buttons( $opt ) {
    $opt['theme_advanced_disable'] = 'justifyfull,forecolor,removeformat,justifycenter,justifyright,justifyleft,charmap,indent,outdent,undo, redo';
    return $opt;
}
add_filter('tiny_mce_before_init', 'custom_disable_mce_buttons');   

The button control list can be found here: http://www.tinymce.com/wiki.php/TinyMCE3x:Buttons/controls

The problem is, there’s a few more ones I’d like to remove, like the spellchecker and the ‘insert more tag’, but I can’t find documentation anywhere of the codes/names for these buttons to remove them.

Any got any info on this?

3 s
3

wp_more – insert more button,

spellchecker – spellchecker button

I’ve tried it with your code on WP 3.5.1 and it worked fine for me.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *