[wp-hackers] Initializing TinyMCE

Otto otto at ottodestruct.com
Tue Jul 8 18:11:28 GMT 2008


Add a bit of script code to the page that basically does this:

tinyMCE.execCommand('mceAddControl', true, 'your_textarea_id');


On Tue, Jul 8, 2008 at 12:47 PM, Chris Poteet <cpoteet at siolon.com> wrote:
> I see that the admin section set's the TinyMCE mode to "none", but I
> can't then find where it's actually initialized.  I see         'onpageload'
> => 'wpEditorInit', but I don't understand what that means.
>
> The question is that I have other textreas in 2.5 that I'd like to be
> turned into rich editors as well on the post-new screen (using the
> Custom Write Panel plugin), but when I change the "mode" to
> "textareas" then the main editor doesn't work correctly.
>
> Is there a way to do this and preferably without editing the core?
> I'll give a $25 gift certificate to Amazon to whoever figures this out
> for me.*
>
> *Hopefully I can do that on here.
> _______________________________________________
> 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