New to Kendo UI for Angular? Start a free 30-day trial

Paste Cleanup

The Editor provides options for cleaning up pasted HTML content.

This functionality allows for greater control over the entered content and ensures that its styling is consistent. Cleaning up the pasted HTML content is advisable when the user copies content from MS Word.

The Editor supports the following options for cleaning up pasted content:

  • convertMsLists—If set to true, MS Word lists will be converted into HTML lists.
  • removeHtmlComments—If set to true, comments will be removed from the HTML.
  • stripTags—Specifies a list of tags that will be removed from the HTML.
  • removeAttributes—Specifies the DOM attributes that have to be removed from the HTML.
  • removeMsClasses—If set to true, class attributes starting with "Mso" will be removed from the HTML.
  • removeMsStyles—If set to true, style attributes starting with "Mso" will be removed from the HTML.
  • removeInvalidHTML—If set to true, invalid HTML will be removed.

The following example demonstrates how to clean up pasted content.

Example
View Source
Change Theme:

In this article

Not finding the help you need?