Hi,
I've recently added jquery to list of libraries used by a web application I am developing. Initially, this application used prototype for AJAX calls, but I have switched all this type of calls to jquery (prototype is still used by some external libraries without conflicts). Application runs well and is enhanced by jquery.
One part is however problematic: openwysiwyg editor (v. 1.01 openwebware) is not working in FireFox (it also works partially in Google Chrome). If I place the editor directly in page then it works, but if I call it in a div via AJAX (this worked flawless with prototype) then it does not.
The symptoms are: editor is rendered correctly, but it is not possible to write anything in body (iframe). If a document is loaded for editing, the document is rendered correctly (with styling, images etc.), but it remains visible only for several seconds and then iframe becomes blank. Did somebody experienced similar issue with this editor or with other editors under jquery?
I presume this issue is linked with AJAX call: openwysiwyg editor works in an application with jquery (if is loaded when page is initially rendered). There is no error listed in firebug (at loading time or when I click body for edit). An error is listed only if I click on one of the buttons (bold, italic etc.):
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://127.0.0.1/mynos/libraries/openwysiwyg/wysiwyg.js :: formatText :: line 462" data: no]
Could somebody give a hint on how to make this thing work?
I would highly prefer not to switch to another editor. On one side openwysiswyg is very light and worked perfectly. On the other side, I have customized some of the popup/dialog panels.
All the best,
Adorian