Is there a way I can use WordPress visual editor in my plugin? (3 posts)

  1. adrian7
    Posted 5 years ago #

    I am working on a plugin for WP 3.0 and above. For the moment, I need a basic visual editor for the users and I just don't want to overload the plugin's size with it's own visual editor. So I am thinking to use the one already available in Wp.
    Anyone tried this before?

  2. Mark / t31os

    Posted 5 years ago #

    Yes it's quite possible, problematic if you're loading it alongside the existing editor, but outside the post editor screen it's fairly simple..

    wp_tiny_mce( false, $mce_config );

    Where $mce_config should be an array of key=>value pairs that represent the configuation settings for the editor(tinymce) instance.

    Config settings can be found here.
    Or if you prefer, a brief write-up covering the key points can also be found here.

    If you have problems implementing the code, let me know, i've used it in plugins page myself without a hitch.. ;)

  3. adrian7
    Posted 5 years ago #

    Thank you very much. I will try it out and come out with updates.
    I noticed you are a moderator, so I guess it would be useful to redirect/move/link the thread http://en.forums.wordpress.com/topic/possible-to-use-the-visual-editor-in-my-own-plugin/ to which I was first guided by Google to here.

Topic Closed

This topic has been closed to new replies.

About this Topic