Blog Post

Open TinyMCE editor second row by default

TinyMCE editor used in WordPress usually has two rows on its toolbar. But, the second row is hidden by default, and you need to click an icon on first toolbar row to open the second row.

TinyMCE Button to open the second row
TinyMCE Button to open the second row

If you want this second row to be open by default, here is a small piece of code to do that and it will affect every TinyMCE you have on your website:

function dev4press_tiny_mce_before_init($args) {
  $args['wordpress_adv_hidden'] = false;

  return $args;
}

add_filter('tiny_mce_before_init', 'dev4press_tiny_mce_before_init');

You can add this code in theme functions.php file.

Please wait...

About the author

Milan Petrovic
Milan Petrovic

CEO and Lead developer of Dev4Press Web Development company, working with WordPress since 2008, first as a freelancer, later founding own development company. Author of more than 250 plugins and more than 20 themes.

2 thoughts on “Open TinyMCE editor second row by default”

  1. Hi,

    TinyMCE editor used in WordPress usually has “to” rows on its…

    You probably would like to change that to two. It’s a costly punctuation typo I spotted and thought I should mention it out to you.

    Please wait...
    Reply
    • Thanks, fixed!

      Please wait...
      Reply

Leave a Comment

Latest From The Blog

announcement upcoming development cycle changes

Upcoming development cycle changes

With all plugins getting updates last week, and everything that is going on with the security concerns with WordPress and PHP in the past months, the next wave of updates for all Dev4Press plugins will have more strict release changes.
announcement all plugins updated sdk

All plugins updated with new Freemius SDK

Freemius has released new SDK that fixes some potential security related issues, and all Dev4Press plugins now have been released with the updated SDK. Some plugins got some small changes and improvements as well.
plugins release forum toolbox for bbpress 8.0

forumToolbox for bbPress 8.0

We are thrilled to announce the official release of forumToolbox Pro 8.0! This release marks a major evolution, focusing on modernizing core workflows, stripping out legacy technical debt, and introducing new attachments upload interface reimagined from ground up.

0
0
36
0
0
0
0
0
0