nonSplittableTagsOnPaste Array (default: [])

When pasting a block element inside an element such as a list ul, the list gets split in half and the block element is inserted between the two ul elements.

This configuration enables you to specify elements for which the above behavior will be ignored.

Example

<h4>Create a list using the editor toolbar command and then click the paste button.</h4>
<button id="paste">Paste</button>
<textarea id="editor"></textarea>
<script>
  var editor = $("#editor").kendoEditor({
    nonSplittableTagsOnPaste: ["ul"],
    tools: [
      "insertUnorderedList"
    ]
  }).data("kendoEditor");

  $("#paste").on("click", () => {
    var editor = $("#editor").data("kendoEditor");
    editor.paste("<p>New content</p>");
  });
</script>
In this article