update

Serializes the current state of the editable area to the <textarea> element. This method should be called after modifying the editor content through the DOM.

Example

<textarea id="editor"></textarea>
<script>
var textarea = $("#editor");
textarea.kendoEditor({ value: "Hello, " });
var editor = textarea.data("kendoEditor");
editor.body.appendChild(editor.document.createTextNode("World"));
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(textarea.val()); // logs "Hello, "
editor.update();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(textarea.val()); // logs "Hello, World"
</script>
In this article