createRange

Creates a W3C-compatible Range object.

Parameters

document Document (optional)

The document that the range is associated with. If omitted, the document of the editor editing area will be used.

Returns

Range The created Range object.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
var range = editor.createRange();
</script>
In this article