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?
wp_more
– insert more button,spellchecker
– spellchecker buttonI’ve tried it with your code on WP 3.5.1 and it worked fine for me.
You can try to remove the Spellchecker and the Insert More Tag buttons by adding:
to your
$opt['theme_advanced_disable']
comma-seperated string.On my install I have these options:
Here is the list:
and
Result: