Skip to content

CodeMirrorEditor.getMainSelection method

CodeMirrorEditor › getMainSelection

Unofficial

Get the primary selection as anchor and head positions.

Signature:

getMainSelection(): EditorSelection

Returns: EditorSelection — The primary editor selection.