selectRange

Focuses the editable area and selects the range described by the range parameter.

Parameters

range Range

The Range object that describes the new selection.

Example - select all

<textarea id="editor"></textarea>
<div id="container"></div>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
var range = editor.createRange();
range.selectNodeContents(editor.body);
editor.selectRange(range);
</script>
In this article
Not finding the help you need?