Ready to get started?Download WordPress


tinymce setup issue in plugin (3 posts)

  1. zuotian
    Posted 3 years ago #


    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?


  2. maxemil
    Posted 3 years ago #

    make sure you use the nightly build:

    and follow the ticket, its being updated almost daily:

    maby download the example plugin:

    Im implementing it in a plugin, and it seems to work as expected :)

  3. zuotian
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic