Posted By

f6design on 12/16/11


Tagged

tinymce wysiwyg


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dubogii


Wordpress: Customize TinyMCE buttons


 / Published in: PHP
 

Customize the TinyMCE buttons that are displayed in the Wordpress editor. Add this to your Wordpress theme's functions.php file.

  1. /**
  2.  * Customize tinymce formatting buttons.
  3.  */
  4. function myformatTinyMCE($in) {
  5. $in['theme_advanced_buttons1']='bold,italic,|,bullist,numlist,blockquote,|,link,unlink,|,wp_adv';
  6. $in['theme_advanced_buttons2']='pastetext,pasteword,removeformat,|,charmap,|,undo,redo';
  7.  
  8. return $in;
  9. }
  10. add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

Report this snippet  

You need to login to post a comment.