value

Gets or sets the editor value.

Parameters

value String

The value to set.

Returns

String The value of the Editor as HTML string.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
editor.value("<p>New content</p>");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(editor.value()); // logs "<p>New content</p>"
</script>
In this article