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
Name | Type | Description |
---|---|---|
selection | SelectionWithEditor | The selection with editor to be converted |
Returns
A target that can be used for a that
mark
Defined in
core/commandRunner/selectionToThatTarget.ts:12