Skip to content

Type Editor


Type Editor / @type-editor/commands / util/apply-selection / applySelection

Function: applySelection()

ts
function applySelection(view, selection): boolean;

Defined in: util/apply-selection.ts:11

Applies a new selection to the editor view.

Parameters

ParameterTypeDescription
viewPmEditorViewThe EditorView instance
selectionPmSelectionThe selection to apply

Returns

boolean

Always returns true to indicate the event was handled