New to Kendo UI for Angular? Start a free 30-day trial

Editor Selection

The Kendo UI for Angular Editor component is based on the ProseMirror library and internally implements its concepts for selection. For further details, please refer to the ProseMirror Selection class documentation.

Retrieve the Selected Text

For convenience, the Editor exposes a dedicated selectionText field which contains the currently selected text.

The following example demonstrates how to retrieve the text from the current selection.

View Source
Change Theme:

In this article

Not finding the help you need?