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

Enable Jquery in radeditor

5 Answers 201 Views
Editor
This is a migrated thread and some comments may be shown as answers.
imad
Top achievements
Rank 1
imad asked on 16 Jul 2010, 03:54 PM
HI,

I need to enable jquery to run in the radeditor in design mode, so i can enable drag and drop of entire panels not only Html elements.
I already set the allowscript property to true, but still with no success neither in design mode or preview mode.

Any help Please.
Thanks.

5 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Jul 2010, 11:37 AM
Hi Imad,

By default, RadEditor has enabled built-in filters - RemoveScripts and EncodeScripts which remove any script tags from the content to prevent Cross-Server-Script attacks. In order to allow execution of scripts inside RadEditor content area you need to disable these content filters, e.g.:
RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.RemoveScripts);
RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.EncodeScripts);
Also, you need to set RadEditor to work in Full HTML Edit mode. Please find how to achieve this in the following live demo:
Editor / Full HTML Page Edit

Please note that such modification is highly not recommended.

Best wishes,
Dobromir
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
imad
Top achievements
Rank 1
answered on 22 Jul 2010, 10:02 AM
Thank you for your reply,

I already set the contentfilter to none, and for the Full HTML Edit mode, i am setting the extra tags for the html, head and body. But with no success, it only works for chrome but mozilla and IE it doesnt.

basically i am trying to run this http://demo.webdeveloperplus.com/drag-drop-panels/ inside the radeditor, becuase i need to enable drag drop of entire panels not only html elements.

Any help Please.
Thanks

0
Dobromir
Telerik team
answered on 27 Jul 2010, 10:36 PM
Hi Imad,

This functionality is not supported by RadEditor out-of-the-box. RadEditor's content area is an editable <iframe> and the editor is based on the browser's standard RichTextEditing engine. Loading and executing complex JavaScript functions cannot be achieved due to different limitations of the browser's engines.


All the best,
Dobromir
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
Kurt
Top achievements
Rank 1
answered on 24 Aug 2010, 06:39 PM
Dobromir,

I have a similar need to put script tags into RadEditor. I am using it in DotNetNuke, and have tried to put the "AllowScripts" value into the ConfigDefault.xml file, but I am getting this error: "Could not load RadEditor. Property assignment is not supported [AllowScripts]". However, I also use such properties as the "NewLineBr" property (<property name="NewLineBr">false</property>) in the ConfigDefault.xml file, and I get no such error. I know that both the "AllowScripts" and the "NewLineBr" properties are members of "Telerik.Web.UI.RadEditor", but I cannot figure out why the former throws an error while the latter does not.

How can I make the editor allow script tags in its content?

Thank you,
Kurt
0
Dobromir
Telerik team
answered on 26 Aug 2010, 12:38 PM
Hi Kurt,

Please, note that version 5.4 or later of DNN uses the Professional provider of RadEditor, which is implementation of the DNN developers and it is not supported by Telerik.

If you use such a build our suggestion is to post your question in the DNN forums at http://www.dotnetnuke.com/tabid/795/default.aspx and ask the support of DNN for help. This article could be also helpful : Taming (customizing) The new Telerik RadEditor.

Greetings,
Dobromir
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
Tags
Editor
Asked by
imad
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
imad
Top achievements
Rank 1
Kurt
Top achievements
Rank 1
Share this question
or