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();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(selection);
</script>
In this article