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:

  • convertMsListsIf set to true, MS Word lists will be converted into HTML lists.
  • removeHtmlCommentsIf set to true, comments will be removed from the HTML.
  • stripTagsSpecifies a list of tags that will be removed from the HTML.
  • removeAttributesSpecifies the DOM attributes that have to be removed from the HTML.
  • removeMsClassesIf set to true, class attributes starting with "Mso" will be removed from the HTML.
  • removeMsStylesIf set to true, style attributes starting with "Mso" will be removed from the HTML.
  • removeInvalidHTMLIf set to true, invalid HTML will be removed.

The following example demonstrates how to clean up pasted content.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?