I am getting an uncaught exception, when using the Create Link function in the FCKEditor. It says that the node cannot be used in a document other than the one in which it was created. The code functioned until recently.
I am trying to understand the error message, and how to fix it. This error occurs in Firefox 3.01. I have tried it in multiple Internet Explorer versions without errors.
We purchased a license in at or around August 2006. I have been trying to figure out what version we are on, to see about the possibilities installing a later version, since the issue may be addressed in a later version. My best guess is we are on v2.3.1.
Firefox Javascript Error Console:
Error: uncaught exception: [Exception... "Node cannot be used in a document other than the one in which it was created" code: "4" nsresult: "0x80530004 (NS_ERROR_DOM_WRONG_DOCUMENT_ERR)" location: "editor/js/fckeditorcode_gecko.js Line: 61"]
FCKeditor version: unknown, though I think it might be 2.3.1
File Used:
editor/js/fckeditorcode_gecko.js
Function with a problem:
Line causing the problem:
If you have any ideas on why this is happening or how to fix it, I would love to hear them.
Thank you,
Daryl
I am trying to understand the error message, and how to fix it. This error occurs in Firefox 3.01. I have tried it in multiple Internet Explorer versions without errors.
We purchased a license in at or around August 2006. I have been trying to figure out what version we are on, to see about the possibilities installing a later version, since the issue may be addressed in a later version. My best guess is we are on v2.3.1.
Firefox Javascript Error Console:
Error: uncaught exception: [Exception... "Node cannot be used in a document other than the one in which it was created" code: "4" nsresult: "0x80530004 (NS_ERROR_DOM_WRONG_DOCUMENT_ERR)" location: "editor/js/fckeditorcode_gecko.js Line: 61"]
FCKeditor version: unknown, though I think it might be 2.3.1
File Used:
editor/js/fckeditorcode_gecko.js
Function with a problem:
FCK.CreateLink=function(A){ FCK.ExecuteNamedCommand('Unlink'); if (A.length>0){ var B='javascript:void(0);/*'+(new Date().getTime())+'*/'; FCK.ExecuteNamedCommand('CreateLink',B); var C=document.evaluate("//a[@href='"+B+"']",this.EditorDocument.body,null,9,null).singleNodeValue; if (C){ C.href=A; return C; } } };
Line causing the problem:
var C=document.evaluate("//a[@href='"+B+"']",this.EditorDocument.body,null,9,null).singleNodeValue;
If you have any ideas on why this is happening or how to fix it, I would love to hear them.
Thank you,
Daryl
Re: Uncaught Exception When Creating a Link - Node cannot be use
Re: Uncaught Exception When Creating a Link - Node cannot be use
So, if you want to fix your copy without having to upgrade the full repository with the latest version
you should change this line :
to
Re: Uncaught Exception When Creating a Link - Node cannot be use
Re: Uncaught Exception When Creating a Link - Node cannot be use
well, I have downloaded my FCK only yesterday, apparently I've the latest version. I'm having this (or a similar) problem as well.
As soon as I load the FCK in my modal popup (DHTML goodies), I see this error.
Re: Uncaught Exception When Creating a Link - Node cannot be use
It would be appreciated if someone would look into this conflict between FCKeditor and the Google Toolbar.
Re: Uncaught Exception When Creating a Link - Node cannot be use
I've installed the 3.1.20081127W Google toolbar in Firefox 3.0.4 and I don't see any problem loading http://www.fckeditor.net/demo
Do you have better steps to reproduce the problem?
Re: Uncaught Exception When Creating a Link - Node cannot be use
Does anyone know whether the problem, related to the headline of this topic, still exsists in the latest stable version (2.6.31)?
At this time I'm working with version 2.3.1....
Martin