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 search the topic about how to use tinymce in wordpress 3.5.1 and i not found. I'm writing plugin and i have textarea that i want to add timymce into What should i do to add tinymce into suppose that i have textarea like this

<textarea class="focus_des" name="focus_des" id="focus_des" ></textarea>
share|improve this question
    
You should use wp_editor() to create TinyMCE instances. –  Pat J May 22 '13 at 12:19
    
thankyou Pat J and i will try that –  user2006362 May 22 '13 at 12:21

1 Answer 1

Use wp_editor(). There are many configuration options; you have to read the source to get all of them.

Example:

$editor_settings =  array (
    'textarea_rows' => 15,
    'media_buttons' => FALSE,
    'teeny'         => TRUE,
    'tinymce'       => TRUE,
    'dfw'           => FALSE,
);

$content = $get_option( 'your_option_name' );
wp_editor( $content, 'your_editor_id', $editor_settings );
share|improve this answer
    
thank you very mush toscho. –  user2006362 May 22 '13 at 12:38

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.