EditorPasteCleanupSettingsTagHelper
Example
Razor
<paste-cleanup/>
Attributes
Attribute | Type | Description |
---|---|---|
all | Boolean | All HTML tags are stripped leaving only the text in the content. |
css | Boolean | Remove style and class attributes from the pasting content. |
custom | String | Use 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-lines | Boolean | Strip all HTML tags but keep new lines in the pasted content. |
ms-all-formatting | Boolean | Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags. |
ms-convert-lists | Boolean | Converts MS Word pasted content into HTML lists. |
ms-tags | Boolean | Removes all MS Word specific tags and cleans up the extra metadata. |
none | Boolean | Prevent any cleaning up of the content. |
span | Boolean | Remove all span elements from the content, ensuring much of the inline formatting is removed. |