Skip to main content

$setSelection

function

Sets the current selection in the active EditorState, marking it dirty and clamping to slot boundaries when applicable.

function $setSelection(selection: null | BaseSelection): void

Import

import { $setSelection } from '@modular/sdk/editor';