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 totrue
, MS Word lists will be converted into HTML lists.removeHtmlComments
—If set totrue
, 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 totrue
, class attributes starting with "Mso" will be removed from the HTML.removeMsStyles
—If set totrue
, style attributes starting with "Mso" will be removed from the HTML.removeInvalidHTML
—If set totrue
, invalid HTML will be removed.
The following example demonstrates how to clean up pasted content.
Change Theme
Theme
Loading ...