Error message when posting invalid HTML

2 posts, 0 answers
  1. Davey
    Davey avatar
    1 posts
    Member since:
    May 2011

    Posted 11 Aug 2011 Link to this post

    We have HTML saved in our database (from before we implemented RadEditor) that includes things like: <SPAN style="FONT-SIZE: 10pt" gray;?="" color:="" arial?,?sans-serif?;="">. When the user posts with this HTML in Firefox they get an alert that looks like:

    Error while executing filter ConvertFontToSpanFilter - [Exception... "String contains an invalid character"  code: "5" nsresult: "0x80530005 (NS_ERROR_DOM_INVALID_CHARACTER_ERR)"  location: "https://localhost/Subscribers/ScriptResource.axd?d=2eHYqgnVBHONfwZDen1YDcz5DZLpEQofwg799549PDgZJJmxxQIG0GJmh_GR-8UxvUyNvk5EpabsR9QxsnPoxMX4d0CJVoRiU1N2E56z93xNDv0T_o-WS_vGOOS9lTwEXhW03g2&t=ffffffff9f027b8e Line: 580"]

    Is there any way we can suppress this error message?

  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 16 Aug 2011 Link to this post

    Hi Davey,

    I already answered your support ticket on the subject. For convenience I will paste my answer here as well:

    RadEditor does not offer functionality to suppress error messages thrown by the content filters out-of-the-box. This error message indicates for a JavaScript error that has occurred during the execution of the mentioned content filter and it should not appear if the filter is disabled.

    In addition, I tried to reproduce the error with disabled ConvertFontToSpan filter but to no avail. Could you please verify that you have correctly disabled the filter? You can find how to disabled a specific built-in content filter in the following help article:
    Content Filters

    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.

Back to Top