Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy