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

jquery in RadEditor

4 Answers 201 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 01 Sep 2010, 08:08 AM
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

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Sep 2010, 02:54 PM
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
0
Darren
Top achievements
Rank 1
answered on 29 Jul 2011, 01:26 AM
Hi Rumen,

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

Darren L.
0
Dobromir
Telerik team
answered on 29 Jul 2011, 11:53 AM
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.

0
Darren
Top achievements
Rank 1
answered on 30 Jul 2011, 12:45 AM
Thank you.

Darren
Tags
Editor
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Darren
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or