[wp-hackers] Calling WP TinyMCE from a plugin?

Alexander Beutl xel at netgra.de
Fri May 16 06:56:22 GMT 2008


You could try adding this to the print_scripts

if ( user_can_richedit() )
                wp_enqueue_script('editor');

and then try something like

<?php the_editor($myContent); ?>

while i haven't tried it for widget it works for custom admin pages.


2008/5/16 Keith Solomon <ksolomon at gmail.com>:

> I'm working on an upgrade of the standard WP text widget to use TinyMCE for
> a client.  Is there an easy way (hook, etc) to call the WP implementation of
> TinyMCE, or do I need to build the script out from scratch in my plugin?
>
> Keith
>
> --
> Keith Solomon - ksolomon at gmail.com
> My Blog - http://reciprocity.be/
> My Flickr - http://www.flickr.com/photos/zarath0s/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list