Paste Cleanup

The Editor provides options for cleaning up the content which users paste in the content area.

The paste cleanup features allows for better control on the entered content and ensures consistent styling.

The available options are:

  • all (default: false)
  • css (default: false)
  • custom
  • keepNewLines (default: true)
  • msAllFormatting (default: false)
  • msConvertLists (default: true)
  • msTags (default: true)
  • none (default: false)
  • span (default: false)
<div id="vueapp" class="vue-app">
    <kendo-editor :value="htmlText"
                  style="height:280px"
                  :paste-cleanup="pasteCleanup">
    </kendo-editor>
</div>
Vue.use(EditorInstaller);

new Vue({
    el: "#vueapp",
    data: {
        htmlText: "<p>Some sample text.</p>",
        pasteCleanup: {
            all: false,
            css: false,
            keepNewLines: false,
            msAllFormatting: false,
            msConvertLists: true,
            msTags: true,
            none: false,
            span: false
        }
    }
})

In this article