nonSplittableTagsOnPaste.unwrap Boolean
(default: true)
By default the pasted content will be unwrapped from its parent elements when the nonSplittableTagsOnPaste
configuration is enabled. This property enables you to stop that behavior.
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: [{
tag: "ul",
unwrap: false
}],
tools: [
"insertUnorderedList"
]
}).data("kendoEditor");
$("#paste").on("click", () => {
var editor = $("#editor").data("kendoEditor");
editor.paste("<p>New content</p>");
});
</script>