During my debugging for another problem, I came across this difficulty as well. However, When I was getting this error, I was viewing fck_editor.html directly. LinkedField is used as a reference to an input element outside the editor proper.
ClientID needs to be changed to UniqueID, in the below lines when textarea is created, it uses UniqueID property. fck_startup.js uses document.getElementsByName(FCK.Name) method, as the names do not match LinkedField returns null.
RE: Version 2.0 breaks Firefox
RE: Version 2.0 breaks Firefox
RE: Version 2.0 breaks Firefox
http://communityserver.org/forums/4/492 ... spx#492469
RE: Version 2.0 breaks Firefox
Replacetextarea worked in Firefox if both the ID & Name
are the same (or u remove the ID):
<textarea id="FCKeditor1" name="fckeditor1">
However, Firefox doesn't work if the ID & Name are
different:
<textarea id="FCKeditor1" name="fckeditor1X">
that's a big problem, if u have to use a different name tag!
RE: Version 2.0 breaks Firefox
now it works also with DNN.
RE: Version 2.0 breaks Firefox
protected override void Render(HtmlTextWriter writer)
{
// ...
sLink += "editor/fckeditor.html?InstanceName=" + this.ClientID ;
}
ClientID needs to be changed to UniqueID, in the below lines when textarea is created, it uses UniqueID property.
fck_startup.js uses document.getElementsByName(FCK.Name) method, as the names do not match LinkedField returns null.
The corrected line is as follows:
sLink += "editor/fckeditor.html?InstanceName=" + this.UniqueID ;
Does this solves the issue?
RE: Version 2.0 breaks Firefox
Is it a simple correction I can make in the JavaScript code, or is it something I need to download from somewhere?
Thanks.