We are still using the v1.5 because we're waiting for the full 2.0 version to make the big step @ once, and in this version we found a strange thing wich caused us problems.
The editor first prints in the fckeditor.js a textarea with the name of the editor.. This name is dynamic in our project and gave problems when it is "description".
in the fck_editor.js this textarea is set into the oLinkedField var with the following code:
oLinkedField = parent.document.getElementsByName(URLParams['FieldName'])[0] ;
wich gave the value undefined to the editor because we use the META tag description:
<meta name="description" content="Electos">
wich he sees as the first object with the name description.
We changed the code in fckeditor.html to:
58: document.write('<INPUT type="hidden" id="' + this.InstanceName + 'TargetArea" name="' + this.InstanceName + '" value="' + HTMLEncode( this.Value ) + '">') ;
and
69: document.write('<TEXTAREA id="' + this.InstanceName + 'TargetArea" name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + HTMLEncode( this.Value ) + '<\/TEXTAREA>') ;
and in fck_editor.js:
200: oLinkedField = parent.document.getElementById(URLParams['FieldName'] + "TargetArea") ;
The editor first prints in the fckeditor.js a textarea with the name of the editor.. This name is dynamic in our project and gave problems when it is "description".
in the fck_editor.js this textarea is set into the oLinkedField var with the following code:
oLinkedField = parent.document.getElementsByName(URLParams['FieldName'])[0] ;
wich gave the value undefined to the editor because we use the META tag description:
<meta name="description" content="Electos">
wich he sees as the first object with the name description.
We changed the code in fckeditor.html to:
58: document.write('<INPUT type="hidden" id="' + this.InstanceName + 'TargetArea" name="' + this.InstanceName + '" value="' + HTMLEncode( this.Value ) + '">') ;
and
69: document.write('<TEXTAREA id="' + this.InstanceName + 'TargetArea" name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '" wrap="virtual">' + HTMLEncode( this.Value ) + '<\/TEXTAREA>') ;
and in fck_editor.js:
200: oLinkedField = parent.document.getElementById(URLParams['FieldName'] + "TargetArea") ;