EditorPasteCleanupSettingsTagHelper

Example

Razor
<paste-cleanup/>

Attributes

AttributeTypeDescription
allBooleanAll HTML tags are stripped leaving only the text in the content.
cssBooleanRemove style and class attributes from the pasting content.
customStringUse a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
keep-new-linesBooleanStrip all HTML tags but keep new lines in the pasted content.
ms-all-formattingBooleanRemove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.
ms-convert-listsBooleanConverts MS Word pasted content into HTML lists.
ms-tagsBooleanRemoves all MS Word specific tags and cleans up the extra metadata.
noneBooleanPrevent any cleaning up of the content.
spanBooleanRemove all span elements from the content, ensuring much of the inline formatting is removed.
In this article
ExampleAttributes
Not finding the help you need?
Contact Support