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();
console.log(range);
</script>
In this article
Not finding the help you need? Improve this article