Prevent/remove residual HTML markup

2 posts, 0 answers
  1. Bartski
    Bartski avatar
    4 posts
    Member since:
    Mar 2009

    Posted 08 Mar 2011 Link to this post

    User love to cut and paste from here and there. apply and reapply font styles etc.

    This continuously leaves residual html, what for the user results in ‘strange behavior’.

    Is there some way to clean or prevent this? From the editor except from going in the source?

  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 08 Mar 2011 Link to this post

    Hello Bartski,

    You can create a custom content filter and remove all the elements which are unnecessary in your particular case. Review the following online help article: .

    Probably in your case the filter should be DOM. So in the declaration of the filter use this.set_isDom(true);. This way the arguments of the getHtmlContent and getDesignContent methods will be the content area of the editor and you will be able to use dom functionality to get the unnecessary elements.

    Kind regards,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top