Edit this page

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

Give article feedback

Tell us how we can improve this article

close
Dummy