Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a plugin that inserts a tinymce like shown below. Something causes the second toolbar, the theme_advanced_buttons2 to have display:none attached to their style attribute, effectively hiding them.

I don't manage to find the code responsible for this.

$tinymce =  

array
(
      'theme_advanced_buttons1' =>

         '                       \
            ,  undo              \
            ,  redo              \

               ...
               ...

            ,  indent            \
         '

   ,  'theme_advanced_buttons2' =>

         '                       \
               link              \
            ,  unlink            \

               ...
               ...

            ,  help              \
         '
);

wp_editor
(
      $text
   ,  $editor[ 'name' ]
   ,  array
      (
           'tinymce'   => $tinymce
         , 'quicktags' => $enabled
      )
);

I found the right answer here thanks to a comment by mrwweb:

Show the Kitchen Sink by Default

If you would like to show that second row of options by default, there’s an easy way. Simply put the following into your theme’s functions.php file (Appearance > Edit > Theme Functions – functions.php):

function unhide_kitchensink( $args )
{
   $args['wordpress_adv_hidden'] = false;
   return $args;
}

add_filter( 'tiny_mce_before_init', 'unhide_kitchensink' );
share|improve this question
2  
Just double-checking. Have you clicked "Show/Hide Kitchen Sink?" or hit ALT + SHIFT + Z –  mrwweb May 14 '12 at 21:16
    
@mrwweb thanks, you lead me to the answer –  nus May 14 '12 at 22:19
    
Please post your answer as an Answer below and mark it as accepted when you get the chance. That way, future visitors can benefit from the solution. –  EAMann May 14 '12 at 22:37
    
@EAMann I would if I could. –  nus May 14 '12 at 23:10
add comment

2 Answers

up vote 2 down vote accepted

Show the Kitchen Sink by Default

Copying @nus' answer as an answer to help newcomers.

If you would like to show that second row of options by default, there’s an easy way. Simply put the following into your theme’s functions.php file:

function unhide_kitchensink( $args )
{
   $args['wordpress_adv_hidden'] = false;
   return $args;
}

add_filter( 'tiny_mce_before_init', 'unhide_kitchensink' );
share|improve this answer
    
Is there any easy way to do this conditionally, i.e. not to all instances of the editor? just to instances added with wp_editor() of which we know the id for example? –  Ronnieinspain Jan 13 at 17:10
add comment

You can also set wordpress_adv_hidden=false anywhere in the tinymce config.

For example,

  1. Install this plugin http://wordpress.org/extend/plugins/advanced-tinymce-configuration/
  2. Add an option wordpress_adv_hidden
  3. With the value false
share|improve this answer
2  
Without more detail this answer isn't very helpful. –  s_ha_dum Jan 13 '13 at 20:09
    
I dont agree, but I updated the question to be more verbose anyway. –  pike Jan 15 '13 at 12:33
    
Hey... @toscho got me for the same thing yesterday :) –  s_ha_dum Jan 15 '13 at 14:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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