In my product I use the RadEditor Version 7.2.1.0 (2007Q2SP1).
I use the JavaScript Client side object of the RadEditor for my feature requirements.
In all the version of IE and till FireFox 5.0 it works fine. It stopped working for latest versions of FireFox (8.0 and 9.0).
Even I tried a bare minimum sample. It works for FF 5.0 and doesn't for FF 9.0
Here is the code that I used. This doesn't work for FF 8.0 and above.
Also I have code that streams JavaScript from Code behind. This also stops working from FF 8.0
This gives me RadEditor1 is not defined error.
Please help.
I use the JavaScript Client side object of the RadEditor for my feature requirements.
In all the version of IE and till FireFox 5.0 it works fine. It stopped working for latest versions of FireFox (8.0 and 9.0).
Even I tried a bare minimum sample. It works for FF 5.0 and doesn't for FF 9.0
Here is the code that I used. This doesn't work for FF 8.0 and above.
<
form
id
=
"Form1"
method
=
"post"
runat
=
"server"
>
<
div
>
<
radE:RadEditor
id
=
"RadEditor1"
editable
=
"true"
Runat
=
"server"
></
radE:RadEditor
>
</
div
>
<
script
language
=
"javascript"
>
function GetReference1()
{
var editor = GetRadEditor("<%=RadEditor1.ClientID%>");
alert(editor.Id); //returns RadEditor Client ID
}
</
script
>
<
input
type
=
"button"
value
=
"Get Ref1"
onclick
=
"GetReference1()"
>
</
form
>
Also I have code that streams JavaScript from Code behind. This also stops working from FF 8.0
protected
override
void
Render(HtmlTextWriter writer)
{
base
.Render(writer);
writer.WriteBeginTag(
"script"
);
writer.WriteAttribute(
"type"
,
"text/javascript"
);
writer.Write(HtmlTextWriter.TagRightChar);
writer.WriteLine(
"var HtmlEditor = "
+ RadEditor1.ClientID +
";"
);
writer.WriteLine(
"alert(HtmlEditor)"
);
writer.WriteEndTag(
"script"
);
}
This gives me RadEditor1 is not defined error.
Please help.