EditorPasteCleanupSettingsBuilder
Defines the fluent API for configuring the EditorPasteCleanupSettings settings.
Methods
All(System.Boolean)
All HTML tags are stripped leaving only the text in the content.
Parameters
value - System.Boolean
The value that configures the all.
Css(System.Boolean)
Remove style and class attributes from the pasting content.
Parameters
value - System.Boolean
The value that configures the css.
Custom(System.Func)
Use a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
Parameters
handler - System.Func<Object,Object>
The value that configures the custom action.
Custom(System.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.
Parameters
handler - System.String
The value that configures the custom action.
KeepNewLines(System.Boolean)
Strip all HTML tags but keep new lines in the pasted content.
Parameters
value - System.Boolean
The value that configures the keepnewlines.
MsAllFormatting(System.Boolean)
Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.
Parameters
value - System.Boolean
The value that configures the msallformatting.
MsConvertLists(System.Boolean)
Converts MS Word pasted content into HTML lists.
Parameters
value - System.Boolean
The value that configures the msconvertlists.
MsTags(System.Boolean)
Removes all MS Word specific tags and cleans up the extra metadata.
Parameters
value - System.Boolean
The value that configures the mstags.
None(System.Boolean)
Prevent any cleaning up of the content.
Parameters
value - System.Boolean
The value that configures the none.
Span(System.Boolean)
Remove all span elements from the content, ensuring much of the inline formatting is removed.
Parameters
value - System.Boolean
The value that configures the span.