New to Telerik UI for ASP.NET Core? Download free 30-day trial

EditorPasteCleanupSettingsBuilder

Methods

All(System.Boolean)

All HTML tags are stripped leaving only the text in the content.

Parameters

value - System.Boolean

The value for All

All()

All HTML tags are stripped leaving only the text in the content.

Css(System.Boolean)

Remove style and class attributes from the pasting content.

Parameters

value - System.Boolean

The value for Css

Css()

Remove style and class attributes from the pasting content.

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 name of the JavaScript function that will be evaluated.

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 handler code wrapped in a text tag.

KeepNewLines(System.Boolean)

Strip all HTML tags but keep new lines in the pasted content.

Parameters

value - System.Boolean

The value for KeepNewLines

KeepNewLines()

Strip all HTML tags but keep new lines in the pasted content.

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 for MsAllFormatting

MsAllFormatting()

Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.

MsConvertLists(System.Boolean)

Converts MS Word pasted content into HTML lists.

Parameters

value - System.Boolean

The value for MsConvertLists

MsTags(System.Boolean)

Removes all MS Word specific tags and cleans up the extra metadata.

Parameters

value - System.Boolean

The value for MsTags

None(System.Boolean)

Prevent any cleaning up of the content.

Parameters

value - System.Boolean

The value for None

None()

Prevent any cleaning up of the content.

Span(System.Boolean)

Remove all span elements from the content, ensuring much of the inline formatting is removed.

Parameters

value - System.Boolean

The value for Span

Span()

Remove all span elements from the content, ensuring much of the inline formatting is removed.

In this article
Not finding the help you need?