PressTigers

How to turn on Disabled Buttons in WordPress Visual Editor

The default text editor in WordPress is TinyMce which provides a lot of features. There are two views in TinyMce:

  1. Visual Editor
  2. HTML Editor

Sometimes, content writers don’t have the knowledge about HTML and mostly use visual editor screen. Reason being, it gives a lot of flexibility to them change the content. A bunch of buttons included in TinyMCE are disabled in WordPress but it is easy to enable them.

WordPress provides the following two filters by which you can delete the existing functionality or enable a new functionality:

  • mce_buttons_2 – Second row of buttons
  • mce_buttons_3 – Third row of buttons

Second Row Buttons:

There are few buttons in the second row which are disabled by default in WordPress (subscript and superscript button). If you want to enable them, use “mce_buttons_2filter. For this, code snippet is given below:

The same filter can be used to remove buttons from the second row as well. By using the following code snippet, you can remark out the lines of buttons you need to keep and remove the rest which are of no use to you:

Third Row Buttons:

TinyMce have few hidden buttons in the third row. You can turn them on by utilizing “mce_buttons_3filter. For this, code snippet is given below:

User Comments

Leave a Reply

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

Get in Touch