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
| Parameter | Type | Description |
|---|---|---|
view | PmEditorView | The EditorView instance |
selection | PmSelection | The selection to apply |
Returns
boolean
Always returns true to indicate the event was handled