getRange

Gets a Range object form the editable area.

Returns

Range A W3C-compatible Range object that represents the currently selected text in the editor area.

Example

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