Ready to get started?Download WordPress


How to use tinyMCE in my plugin development ? (2 posts)

  1. nhood75
    Posted 3 years ago #

    Hy everybody,

    I'm quite new at plugin's development for wordpress...
    I'm developing a plugin that manage products and allow users to sale online.

    I need TinyMCE for the description fields of the products.
    Can anybody tell me how to call tinyMCE in my plugin ini ?


  2. hockinsk
    Posted 3 years ago #

    I'm having a problem getting TinyMCE to remain displayed after saving the widget form in admin.

    I use the following in form()function to apply tinymce to a textarea in

    wp_tiny_mce( true , array(“editor_selector” => $this->get_field_id(‘html_content’)));

    but when I hit 'Save' the ajax fires and attempts to save the value in tinymce. It fails for some reason and then the textarea reverts to being a normal textarea in the update() function of my form.

    Anyone know how to get tinymce to work in the context of a widget and to save the value?

Topic Closed

This topic has been closed to new replies.

About this Topic