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'm trying to add tinyMCE instead of textarea for one of my options in my plugin with no luck so far. I tried this :

http://www.dbuggr.com/smallwei/add-wysiwyg-editor-tinymce-wordpress-plugin/

and this:

http://blog.imwd8solutions.com/wordpress/wordpress-plugin-development-add-editor-to-plugin-admin-page/

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 ?

share|improve this question

migrated from stackoverflow.com Sep 21 '11 at 8:37

This question came from our site for professional and enthusiast programmers.

2  
0% accept rate tells us that you don't keep track of your questions. Please mark correct answers by clicking the tick next to the answer. Otherwise, it seems you are not actively participating in the community and people will be less willing to help. –  Stephen Harris Mar 10 '12 at 13:37

2 Answers 2

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);
share|improve this answer

If I am reading your question correctly:

wordpress.org/extend/plugins/tinymce-advanced/

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

share|improve this answer
    
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 Sep 21 '11 at 10:32

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.