Kendo UI pasteCleanup TagHelper EditorPasteCleanupSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("paste-cleanup", ParentTag = "kendo-editor", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("paste-cleanup", ParentTag = "richtexteditor-editor", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class EditorPasteCleanupSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseEditorPasteCleanupSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-editor name="editor">
<paste-cleanup all="true" />
</kendo-editor>
Constructors
Initializes a new instance of the EditorPasteCleanupSettingsTagHelper class.
public EditorPasteCleanupSettingsTagHelper()
Properties
All HTML tags are stripped leaving only the text in the content.
public bool? All { get; set; }
Remove style and class attributes from the pasting content.
public bool? Css { get; set; }
Use a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
public string Custom { get; set; }
Strip all HTML tags but keep new lines in the pasted content.
public bool? KeepNewLines { get; set; }
Remove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.
public bool? MsAllFormatting { get; set; }
Converts MS Word pasted content into HTML lists.
public bool? MsConvertLists { get; set; }
Removes all MS Word specific tags and cleans up the extra metadata.
public bool? MsTags { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.