Remove default quicktags
I only want to display a subset of the buttons on the html editor button bar. What is the proper way to remove some of the quicktags? For intance I don't want it to offer "proofread".
I only want to display a subset of the buttons on the html editor button bar. What is the proper way to remove some of the quicktags? For intance I don't want it to offer "proofread".
You can achieve this using the quicktag_settings
filter
function wpse41427_remove_quicktags( $qtInit ) {
$qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen';
return $qtInit;
}
add_filter('quicktags_settings', 'wpse41427_remove_quicktags');
The default buttons for quicktags is a comma seperated value for the buttons key:
$qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen';
You can use the TinyMCE Advanced Plugin that let you configure the Wordpress editor, removing the undesidered buttons.
Install it, via Plugins -> Add New
EDIT: For HTML Editor, try to use the HTML Editor Reloaded plugin.
Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.