Forums

How I can use TinyMCE for my own plugin (2 posts)

  1. Bagira
    Member
    Posted 4 months ago #

    Hi, I must write a plugin with administration panel, somethig like "Write Post". I need for WYSIWYG. I know, that Wordpress use TinyMCE. But i can't include it to my Plugin. How can I do it? I'm newbie in Wordpress programming. Help me please. Thanks.

  2. noamnativ
    Member
    Posted 3 months ago #

    Hi Bagira
    I guess you can add a new advanced text area by using the 'the_editor' function:

    the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2)

    so,for example, if you want to add a new field with the name 'thoughts_list'
    You can do it this way:

    the_editor($thoughts,'thoughts_list');

    Hope this helps.

Reply

You must log in to post.

About this Topic