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

The Wyzz WYSIWYG Editor / Coding Discussion / Not working with google chrome
Author Message
neeraj
Member
# Posted: 1 Apr 2009 13:37 - Edited by: neeraj


well my actual problem is that i am using wyzz editor and it works fine with mozilla and ie but there is a problem in chrome. the text area is invisible to use.

even here on this site on contact page if i try it by chrome then there is no option for writing the message

admin
Admin
# Posted: 2 Apr 2009 14:03


Hi neeraj

An interim upgrade version, 0.65, is now available from the download page. This has been tested with late versions of IE, Firefox, Opera, Chrome and Safari (all on Windows). If you were using 0.62 before, you just need to overwrite the file wyzz.js with the new version. You should also be able to load this site's demo page in Chrome now.

mvanbaak
Member
# Posted: 24 Apr 2009 17:09


Well, the insertLink function is not working.
The real problem is in the function grabSelectedText

This line is wrong for chrome:
var selectedText = document.getElementById("wysiwyg" + n).contentWindow.document.getSelection();

Fix:
Replace that line with:

if (browserName == "Chrome") {
var selectedText = document.getElementById("wysiwyg" + n).contentWindow.getSelection();
} else {
var selectedText = document.getElementById("wysiwyg" + n).contentWindow.document.getSelection();
}

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