Adjusting TinyMCE Size
in
When working with themes with narrow content columns TinyMCE will be too wide and you can only see a portion of the editory. I tried numerous tips given in the Drupal forum but was only able to locate one solution that worked. It involved creating a custom hook using the theme_tinymce_theme hook inside your themes template.php file. It sets the max number of buttons per row to a variable (in this case 12) and modifies the $buttons variable to break.
//Rename to themename_tinymce_theme function themename_tinymce_theme($init, $textarea_name, $theme_name, $is_running) { $max_buttons = 12; $buttons = array_merge($init['theme_advanced_buttons1'], $init['theme_advanced_buttons2'], $init['theme_advanced_buttons3']); $init['theme_advanced_buttons1'] = array_slice($buttons, 0, $max_buttons); $init['theme_advanced_buttons2'] = array_slice($buttons, $max_buttons, $max_buttons); $init['theme_advanced_buttons3'] = array_slice($buttons, 2*$max_buttons, $max_buttons); }
- Login to post comments