I'm trying to add tinyMCE instead of textarea for one of my options in my plugin with no luck so far. I tried this :


and this:


There seems to be some problem with styles as styles for tabs (HTML style/Visual style) dont work. Anybody knows about implementation that works 100% with WP 3.0 and up ?


Pre WP 3.3: http://www.dev4press.com/2010/tutorials/wordpress/tips/add-rich-text-editor-to-your-plugin/

If you are using WP 3.3 or later you might look up wp_editor: http://codex.wordpress.org/Function_Reference/wp_editor

$settings = array(
    'teeny' => true,
    'textarea_rows' => 15,
    'tabindex' => 1
wp_editor(esc_html( __(get_option('whatever_you_need', 'whatever'))), 'terms_wp_content', $settings);
| improve this answer | |
  function my_address_function(){

     update_option('special_content', $_POST['special_content']);

<div class='wrap'>
  <h2>My Super Admin Page</h2>
    <form method='post'>
          $content = get_option('special_content');
          wp_editor( $content, 'special_content', $settings = array('textarea_rows'=> '10') );

          submit_button('Save', 'primary');
  </div><!-- .wrap -->
| improve this answer | |

If I am reading your question correctly:


There's a checkbox in the options to show the custom styles of the theme.

| improve this answer | |
  • 1
    unfortunately I need it for plugin I create, I don't want it to depend on any other plugin – chubbyk Jan 4 '11 at 15:33
  • me too need the same... – Ramkumar M Sep 21 '11 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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