Page 1 of 1

PHP & Ajax Loading Tiny_MCE [SOLVED]

Posted: Fri Aug 15, 2008 8:03 pm
by Jade
Okay, so this is going to sound random but it really isn't, lol.

I have a site done in php/ajax and I'm having trouble getting the tiny_mce to work. The textarea the WISYWIG is on comes from a page being loaded with an ajax call. When I load the php page in the browser window without the ajax call I see the WISYWIG just fine, otherwise the textarea is loaded without it. Soooo, I'm not sure what's going on.

Any suggestions?

Re: PHP & Ajax Loading Tiny_MCE

Posted: Fri Aug 15, 2008 9:51 pm
by Christopher
You probably have to tell TinyMCE to re-initialize itself with the new data (which it will need to re-parse). Check the manual to see if that can be done. I'd be interested to know as I use TinyMCE.

Re: PHP & Ajax Loading Tiny_MCE

Posted: Fri Aug 15, 2008 10:19 pm
by Jade
Okay, so I had to jerry-rig it a bit, but you're right. If I make it call the initialize after the page has been fetched for ajax it works fine. Thanks!

Re: PHP & Ajax Loading Tiny_MCE [SOLVED]

Posted: Fri Aug 15, 2008 10:21 pm
by Christopher
Can you show us the code!? ;)