Forum closed. New forum available at http://community.wymeditor.org/

failsafe for safari

Support forum for WYMeditor.

failsafe for safari

Postby ckoehler on Mon Jun 18, 2007 9:17 pm

Hello,

I am using Wymeditor for a textarea and it works great in most browsers. Safari isn't support yet, so I need to make sure the plain textarea work in it.
Short of using browser sniffing, is there any way I can use plain jquery ajax to submit the textarea text if wymeditor isn't loaded?
I am not a JS expert, so I am guessing this is mostly as JS problem; I need some kind of condition to check whether wymeditor is loaded.

Thanks!

Christoph
ckoehler
 
Posts: 13
Joined: Thu Jun 07, 2007 1:40 am

Postby jfh on Tue Jun 19, 2007 7:52 am

If you use a form with a textarea and a submit button, I suppose they'll normally work as expected.

If you need to bind some event handler on e.g. the submit button, do it before calling ('.wymeditor').wymeditor().

HTH.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby ckoehler on Tue Jun 19, 2007 11:43 am

So I just put an event handler on the textarea before I load wymeditor, and if it can use wymedit, it will overwrite that, and if not, use it?
Sounds good, I will try that, thanks!
ckoehler
 
Posts: 13
Joined: Thu Jun 07, 2007 1:40 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest