RadEditor JavaScript Client Side object Fails in FF 9.0

2 posts, 0 answers
  1. Ajoy
    Ajoy avatar
    1 posts
    Member since:
    Jan 2012

    Posted 27 Jan 2012 Link to this post

    In my product I use the RadEditor Version (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">         
          <radE:RadEditor id="RadEditor1" editable="true" Runat="server"></radE:RadEditor>         
       <script language="javascript">         
       function GetReference1()
           var editor = GetRadEditor("<%=RadEditor1.ClientID%>");
           alert(editor.Id); //returns RadEditor Client ID
       <input type="button" value="Get Ref1" onclick="GetReference1()"

    Also I have code that streams JavaScript from Code behind. This also stops working from FF 8.0

    protected override void Render(HtmlTextWriter writer)
          writer.WriteAttribute("type", "text/javascript");
          writer.WriteLine("var HtmlEditor = " + RadEditor1.ClientID + ";");

    This gives me RadEditor1 is not defined error.

    Please help.
  2. Rumen
    Rumen avatar
    14462 posts

    Posted 30 Jan 2012 Link to this post


    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.

    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
Back to Top