getCaretWordSelection
getCaretWordSelection(
snapshot
):EditorSelection
Defined in: selectors/selector.get-caret-word-selection.ts:23
Returns the selection of the of the word the caret is placed in. Note: Only returns a word selection if the current selection is collapsed
Parameters
snapshot
EditorSnapshot
Returns
EditorSelection