Enable Jquery in radeditor

6 posts, 0 answers
  1. imad
    imad avatar
    19 posts
    Member since:
    Mar 2007

    Posted 16 Jul 2010 Link to this post

    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.
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 20 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. imad
    imad avatar
    19 posts
    Member since:
    Mar 2007

    Posted 22 Jul 2010 Link to this post

    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

  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 Jul 2010 Link to this post

    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
  6. Kurt
    Kurt avatar
    1 posts
    Member since:
    Jun 2010

    Posted 24 Aug 2010 Link to this post

    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
  7. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 26 Aug 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017