PHP & Ajax Loading Tiny_MCE [SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

PHP & Ajax Loading Tiny_MCE [SOLVED]

Post 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?
Last edited by Jade on Fri Aug 15, 2008 10:19 pm, edited 1 time in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP & Ajax Loading Tiny_MCE

Post 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.
(#10850)
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: PHP & Ajax Loading Tiny_MCE

Post 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!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP & Ajax Loading Tiny_MCE [SOLVED]

Post by Christopher »

Can you show us the code!? ;)
(#10850)
Post Reply