radEditor stripping body onLoad() method

2 posts, 0 answers
  1. Mike
    Mike avatar
    2 posts
    Member since:
    Jun 2014

    Posted 10 Oct 2014 Link to this post

    I am trying to paste in the following code to the radEditor.  My company uses it for customers to design their own HTML pages.  Upon inserting the following code and saving it, the onLoad event is removed from the HTML.
    <body onLoad="if (window.FormChanged){FormChanged()}">

    What would cause this?  I have tried disabling all the filters with the EditorFilters.None option.  No dice.  I have disabled the ConvertToXhtml filter as well.  Still nothing.

    Any help would be appreciated.

  2. Ianko
    Ianko avatar
    1510 posts

    Posted 14 Oct 2014 Link to this post

    Hi Mike,

    The RadEditor do not have automatic logic that strips the onload attribute. Also, testing the same scenario on my end, I am unable to reproduce it. You can find attached a sample page which I have been using to follow the described situation. 

    Are there any further details on the matter that could be relevant e.g., additional JS customizations or server-side filtering? The version with which I have been testing is 2014.2.724, let me know if you refer to an older one.

    On a side note, with the upcoming Q3 2014 version, the RadEditor control will have a built-in filter that will strip all DOM attribute events. You should be aware that upon upgrading to this filter, the StripDomEventAttributes filter should be disabled. There will be more inforamiotn on the matter in the Content Filters article.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top