0

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".

2 Answers 2

3

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';
0

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.

3
  • Using the HTML editor not TinyMCE. I think quicktags are only for the HTML editor.
    – dkretz
    Commented Feb 7, 2012 at 0:35
  • I've updated the answer with the HTML Editor Reloaded
    – keatch
    Commented Feb 7, 2012 at 8:03
  • I've already got it, but it only seems to provide for adding shortcodes, like other utilities of its type. I know it can be done because some of the default buttons have functions other than adding shortcodes. I'm trying to avoid having to reverse engineer those.
    – dkretz
    Commented Feb 7, 2012 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.