This is a migrated thread and some comments may be shown as answers.

RadEditor JavaScript Client Side object Fails in FF 9.0

1 Answer 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ajoy
Top achievements
Rank 1
Ajoy asked on 27 Jan 2012, 08:17 AM
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.

<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.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Jan 2012, 02:52 PM
Hi,

Starting from Firefox 6+, RadEditor is rendered as a textarea. That is why the editor is not created on the client and your code does not work.
You can find information on the subject in the following forum thread: RadEditor for ASP.NET does not work properly in Firefox 6.

Note that the development of RadEditor Classic is discontinued since 2009 and we do not support it. It is recommended to consider upgrading to the Ajax version of the control.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Ajoy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or