New to Kendo UI for jQueryStart a free 30-day trial

Paste

methods

Inserts HTML into the editable area. Cleans up MS Word formatting.

Parameters:htmlString

The HTML to be inserted.

optionsObject

Options that configure how the content is processed when pasting.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
editor.paste("<p>New content</p>");
</script>
<textarea id="editor">&lt;em&gt;foo&lt;/em&gt;</textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");

// set selection after 'f'
var range = editor.getRange();
range.setStart(editor.body.firstChild.firstChild, 1);
range.collapse(true);
editor.selectRange(range);

// insert content
editor.paste("bar", { split: false }); // <em>fbaroo</em>
</script>
Not finding the help you need?
Contact Support