jquery in RadEditor

5 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    12 posts
    Member since:
    Aug 2010

    Posted 01 Sep 2010 Link to this post

    document.ready is not working in RadEditor,
    when i use  the following jquery code
    <script>
      $(document).ready(function() {
        $("#accordion").accordion();
    });
    </script>

    It shows as error in RadEditor
  2. Rumen
    Admin
    Rumen avatar
    13749 posts

    Posted 01 Sep 2010 Link to this post

    Hi Saravanan,

    The content area of RadEditor is an editable IFRAME, which is another document which has not access to the parent page where the jQuery scripts resides. If you are able to implement the required functionality using an editable IFRAME element (as the one included in the attached HTML file) you will be able to implement it in RadEditor.

    Please, note also that RadEditor automatically strips the <script> tags and you should disable the RemoveScripts filter. You also need to import reference to the jQuery script files in the HTML loaded in the content area.

    Best regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Darren
    Darren avatar
    36 posts
    Member since:
    Jan 2008

    Posted 28 Jul 2011 Link to this post

    Hi Rumen,

    The link for "disable the RemoveScripts filter" is no longer work. Could you update the new link.

    Darren L.
  4. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 29 Jul 2011 Link to this post

    Hi Darren,

    Here is the correct link to the help article:
    http://www.telerik.com/help/aspnet-ajax/editor-content-filters.html

    Regards,
    Dobromir
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Darren
    Darren avatar
    36 posts
    Member since:
    Jan 2008

    Posted 29 Jul 2011 Link to this post

    Thank you.

    Darren
Back to Top