- Forums - Reply - Statistics - Sign Up - Search -

The Wyzz WYSIWYG Editor / Coding Discussion / Texarea not being posted with Safari or Chrome
Author Message
Snowman
Member
# Posted: 8 Feb 2010 16:17


Hi, I've got the latest versdion 0.65. If I use IE or Firefox I can enter test, then on submit it is transfered OK. With Safari and Chrome, the chnages are not transfered.

I'm guessing it's somewhere in these lines of code ...

// Update the textarea with content in WYSIWYG when user submits form
if (browserName == "Microsoft Internet Explorer"||browserName == "Opera") {
for (var idx=0; idx < document.forms.length; idx++) {
document.forms[idx].attachEvent('onsubmit', function() { updateTextArea(n); });
}
} else {
for (var idx=0; idx < document.forms.length; idx++) {
document.forms[idx].addEventListener('submit',fun ction OnSumbmit() { updateTextArea(n); }, true);
}
}

... this is original code. Is anyone else having the same problem?

Cheers

Snowman
Member
# Posted: 9 Feb 2010 10:08


Duh! My stupid fault. The issue was with the HTML that called the editor.

Your answer

Bold Style  Italic Style  Underlined Style  Image Link  URL Link  Disable BB codes *What's that?

 » Name  » Password 
 Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

Powered by miniBB forum software © 2001-2010