Title: tinymce setup issue in plugin
Last modified: August 20, 2016

---

# tinymce setup issue in plugin

 *  [zuotian](https://wordpress.org/support/users/zuotian/)
 * (@zuotian)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/tinymce-setup-issue-in-plugin/)
 * Hi,
 * In my plugin I try to add a rich text field on user profile page. I followed 
   the example of the post and added following lines for profile.php.
 * `<?php wp_editor($profileuser->author_bio, 'author_bio', array('dfw' => true,'
   media_buttons' => false) ); ?>`
 * TinyMCE loaded correctly. However, once I added formatting to the content, ex,`
   <strong>test</strong>`, then save, the content in the visual editor starts to
   show html tags.
 * I suspect that the editor didn’t initialize to visual mode, but not sure how 
   to confirm it.
 * Are there any other setups I need to do to initialize TinyMCE?
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [maxemil](https://wordpress.org/support/users/maxemil/)
 * (@maxemil)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/tinymce-setup-issue-in-plugin/#post-2308145)
 * make sure you use the nightly build:
    [http://wordpress.org/nightly-builds/wordpress-latest.zip](http://wordpress.org/nightly-builds/wordpress-latest.zip)
 * and follow the ticket, its being updated almost daily:
    [http://core.trac.wordpress.org/ticket/17144](http://core.trac.wordpress.org/ticket/17144)
 * maby download the example plugin:
    [http://core.trac.wordpress.org/attachment/ticket/17144/test-wp-editor-class.2.zip](http://core.trac.wordpress.org/attachment/ticket/17144/test-wp-editor-class.2.zip)
 * Im implementing it in a plugin, and it seems to work as expected 🙂
 *  Thread Starter [zuotian](https://wordpress.org/support/users/zuotian/)
 * (@zuotian)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/tinymce-setup-issue-in-plugin/#post-2308146)
 * Thanks for the links.
 * I found out the issue is caused by entity encoded `$profileuser->author_bio`.
   I added the decoding function, updated to the latest wordpress version, and everything
   works fine now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘tinymce setup issue in plugin’ is closed to new replies.

## Tags

 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)
 * [wp_editor](https://wordpress.org/support/topic-tag/wp_editor/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [zuotian](https://wordpress.org/support/users/zuotian/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/tinymce-setup-issue-in-plugin/#post-2308146)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
