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

PasteCleanupSettings

Configuration options for the Paste Cleanup (see example).

NameTypeDefaultDescription

convertMsLists?

boolean

If set to true, MS Word lists will be converted into HTML lists.

removeAttributes?

string[] | "all"

Specifies the DOM attributes that should be removed from the HTML. When set to 'all', every HTML attribute will be removed. To customize the list of attributes, set removeAttributes to an array of the desired values.

For example when removeAttributes: ['lang'], <p><span lang=EN-US>content</span></p> will result in <p><span>content</span></p>

removeHtmlComments?

boolean

If set to true, comments will be removed from the HTML.

For example <!-- comment --> <p> content </p> will result in <p> content </p>

removeInvalidHTML?

boolean

Determines whether invalid HTML should be removed.

For example <p>content <o:p>, <w:sdtPr></p> will result in <p>content </p>

removeMsClasses?

boolean

If set to true, class attributes starting with 'Mso' will be removed from the HTML.

For example <p class="MsoNormal">pasted from MS Word</p> will result in <p>pasted from MS Word</p>

removeMsStyles?

boolean

If set to true, style attributes starting with 'Mso' will be removed from the HTML.

For example <p><span style="color:#7C7C7C; mso-themecolor:accent3; mso-themeshade:191;">content</span></p> will result in <p><span style="color: #7C7C7C; background: silver;">content</span></p>

stripTags?

string[]

Specifies a list of tags to be removed from the HTML.

For example when stripTags: ['span'], <p><span lang=EN-US>content</span></p> will result in <p>content</p>