Defines the fluent API for configuring the EditorPasteCleanupSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorPasteCleanupSettingsBuilder
Inheritance: objectEditorPasteCleanupSettingsBuilder
Inherited Members
Constructors
public EditorPasteCleanupSettingsBuilder(EditorPasteCleanupSettings settings)
Methods
All HTML tags are stripped leaving only the text in the content.
public EditorPasteCleanupSettingsBuilder All(bool value)
The value that enables the All option.
Returns:Removes 'style' and 'class' attributes from the pasting content.
public EditorPasteCleanupSettingsBuilder Css(bool value)
The value that enables the Css option.
Returns:Defines a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
Defines a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
public EditorPasteCleanupSettingsBuilder Custom(string handler)
TThe name of the JavaScript function that will handle the event.
Returns:Strip all HTML tags but keep new lines in the pasted content.
public EditorPasteCleanupSettingsBuilder KeepNewLines(bool value)
The value that enables the KeepNewLines option.
Returns:Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.
public EditorPasteCleanupSettingsBuilder MsAllFormatting(bool value)
The value that enables the MsAllFormatting option.
Returns:Converts MS Word pasted content into HTML lists.
public EditorPasteCleanupSettingsBuilder MsConvertLists(bool value)
The value that enables the MsConvertLists option.
Returns:Removes all MS Word specific tags and cleans up the extra metadata.
public EditorPasteCleanupSettingsBuilder MsTags(bool value)
The value that enables the MsTags option.
Returns:Prevent any cleaning up of the content.
public EditorPasteCleanupSettingsBuilder None(bool value)
The value that enables the None option.
Returns:Remove all span elements from the content, ensuring much of the inline formatting is removed.
public EditorPasteCleanupSettingsBuilder Span(bool value)
The value that enables the Span option.
Returns: