Hello,
I'm using multiple FCKEditor-Instances on one page. Now I've implemented some JS-Code which changes the order of the Instances (up/down) by cloning the DOM-nodes and using the appendChild()/insertBefore()-methods. Everything is working fine. But when I try to submit() the whole document, the Firefox-JS-Console throws this error:
"Error: FCK is not defined
Source: .../FCKEditor/editor/js/fckeditorcode_gecko_1.js
Line: 26"
This problem won't occur in IE, so I wonder, if this error is a general Firefox-problem or if there's a bug in the fckeditorcode_gecko_1.js?!
Any ideas?
Thx in advance,
Sven
I'm using multiple FCKEditor-Instances on one page. Now I've implemented some JS-Code which changes the order of the Instances (up/down) by cloning the DOM-nodes and using the appendChild()/insertBefore()-methods. Everything is working fine. But when I try to submit() the whole document, the Firefox-JS-Console throws this error:
"Error: FCK is not defined
Source: .../FCKEditor/editor/js/fckeditorcode_gecko_1.js
Line: 26"
This problem won't occur in IE, so I wonder, if this error is a general Firefox-problem or if there's a bug in the fckeditorcode_gecko_1.js?!
Any ideas?
Thx in advance,
Sven
RE: Firefox JS-Node-Cloning Problem
(if I'm not mistaken no browser really clones a node with all the attributes, events, etc... and I remember reading some specifics about why it does work that way in Firefox)
RE: Firefox JS-Node-Cloning Problem
For some reasons the instanciation of the 'FCK'-object in fck_startup.js after moving a DIV-node with a FCKEditor-Instace inside seems to fail.
If I 'actively' move a DIV without a FCKEditor-Instance(ie. parentDiv.insertBefore(divWithoutFCK, divWithFCK) ), so that a DIV with a FCKEditor-Instance is moved 'passively', everything is allright and no JS-Error is thrown.