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?
PHP & Ajax Loading Tiny_MCE [SOLVED]
Moderator: General Moderators
PHP & Ajax Loading Tiny_MCE [SOLVED]
Last edited by Jade on Fri Aug 15, 2008 10:19 pm, edited 1 time in total.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP & Ajax Loading Tiny_MCE
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.
(#10850)
Re: PHP & Ajax Loading Tiny_MCE
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!
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US