mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-26 18:57:50 +08:00
13 lines
358 B
Markdown
13 lines
358 B
Markdown
# setNodeSelection
|
|
`setNodeSelection` creates a new NodeSelection at a given position. A node selection is a selection that points to a single node. [See more](https://prosemirror.net/docs/ref/#state.NodeSelection)
|
|
|
|
## Parameters
|
|
`position: number`
|
|
|
|
The position the NodeSelection will be created at.
|
|
|
|
## Usage
|
|
```js
|
|
editor.commands.setNodeSelection(10)
|
|
```
|