<kendo:editor-pasteCleanup>

Options for controlling how the pasting content is modified before it is added in the editor.

Example

<kendo:editor>
    <kendo:editor-pasteCleanup></kendo:editor-pasteCleanup>
</kendo:editor>

Configuration Attributes

all boolean

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

Example

<kendo:editor-pasteCleanup all="all">
</kendo:editor-pasteCleanup>

css boolean

Remove style and class attributes from the pasting content.

Example

<kendo:editor-pasteCleanup css="css">
</kendo:editor-pasteCleanup>

custom java.lang.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.

Example

<kendo:editor-pasteCleanup custom="custom">
</kendo:editor-pasteCleanup>

keepNewLines boolean

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

Example

<kendo:editor-pasteCleanup keepNewLines="keepNewLines">
</kendo:editor-pasteCleanup>

msAllFormatting boolean

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

Example

<kendo:editor-pasteCleanup msAllFormatting="msAllFormatting">
</kendo:editor-pasteCleanup>

msConvertLists boolean

Converts MS Word pasted content into HTML lists.

Example

<kendo:editor-pasteCleanup msConvertLists="msConvertLists">
</kendo:editor-pasteCleanup>

msTags boolean

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

Example

<kendo:editor-pasteCleanup msTags="msTags">
</kendo:editor-pasteCleanup>

none boolean

Prevent any cleaning up of the content.

Example

<kendo:editor-pasteCleanup none="none">
</kendo:editor-pasteCleanup>

span boolean

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

Example

<kendo:editor-pasteCleanup span="span">
</kendo:editor-pasteCleanup>

Event Attributes

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.

Example

<kendo:editor-pasteCleanup custom="handle_custom">
</kendo:editor-pasteCleanup>
<script>
    function handle_custom(e) {
        // Code to handle the custom event.
    }
</script>

Event Tags

kendo:editor-pasteCleanup-custom

Use a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.

Example

<kendo:editor-pasteCleanup>
    <kendo:editor-pasteCleanup-custom>
        <script>
            function(e) {
                // Code to handle the custom event.
            }
        </script>
    </kendo:editor-pasteCleanup-custom>
</kendo:editor-pasteCleanup>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy