setNodeSelection command

setNodeSelection creates a new NodeSelection at a given position. A node selection is a selection that points to a single node. See more

Parameters

position: number

The position the NodeSelection will be created at.

Use the setNodeSelection command

editor.commands.setNodeSelection(10)