getSelection

Gets a W3C-compatible Selection object form the editable area.

Returns

Selection a W3C-compatible Selection object form the editable area.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
var selection = editor.getSelection();
console.log(selection);
</script>
In this article
Not finding the help you need? Improve this article