Forums

[resolved] php code to add html editor to plugin (5 posts)

  1. jbowshaw
    Member
    Posted 2 years ago #

    Hi

    I'm developing a plugin where I'd like to use wordpresses
    html editor instead of a textarea html form field.
    How do I incorporate the editor into my plugin?

    J

  2. jbowshaw
    Member
    Posted 2 years ago #

    Anyone have a answer to this question?

    using wordpress wysiwyg html editor on plugin page
    instead of using a textarea form field?

    J

  3. jbowshaw
    Member
    Posted 2 years ago #

    This must be something really difficult to do.

    I found the_editor() works sort. The javascript doesn't work
    to toggle in and out of html mode. Nor do the buttons to add media
    files.

    Does anyone have a solution or am I falling on deaf ears?

  4. jbowshaw
    Member
    Posted 2 years ago #

    SOLVED.

    Just downloaded tinymce. Put in a subdirectory off of my plugin.
    Copied in the javascript code and bingo bango I have a wysiwyg
    text editor. much better than the wordpress one.

    I do believe wordpress should have a standard function call
    to bring in its html editor.

    of course what do i know.

  5. caue
    Member
    Posted 1 year ago #

    no need to download tinymce and build up a mess on wordpress. try this: http://stackoverflow.com/questions/2855890/add-tinymce-to-wordpress-plugin/5285847#5285847

Topic Closed

This topic has been closed to new replies.

About this Topic