Skip to main content

Module: core/commandRunner/selectionToThatTarget

Functions

selectionToThatTarget

Const selectionToThatTarget(selection): UntypedTarget

Given a selection with an editor, constructs an appropriate Target to use for a that mark. It uses an UntypedTarget, and if the selection is empty, it sets hasExplicitRange to false.

Parameters

NameTypeDescription
selectionSelectionWithEditorThe selection with editor to be converted

Returns

UntypedTarget

A target that can be used for a that mark

Defined in

core/commandRunner/selectionToThatTarget.ts:12