feat: add setNodeSelection and setTextSelection commands
This commit is contained in:
@@ -209,6 +209,8 @@ Have a look at all of the core commands listed below. They should give you a goo
|
||||
| .selectNodeBackward() | Select a node backward. | [More](/api/commands/select-node-backward) |
|
||||
| .selectNodeForward() | Select a node forward. | [More](/api/commands/select-node-forward) |
|
||||
| .selectParentNode() | Select the parent node. | [More](/api/commands/select-parent-node) |
|
||||
| .setNodeSelection() | Creates a NodeSelection. | [More](/api/commands/set-node-selection) |
|
||||
| .setTextSelection() | Creates a TextSelection. | [More](/api/commands/set-text-selection) |
|
||||
|
||||
<!-- ## Example use cases
|
||||
|
||||
|
||||
3
docs/src/docPages/api/commands/set-node-selection.md
Normal file
3
docs/src/docPages/api/commands/set-node-selection.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# setNodeSelection
|
||||
|
||||
TODO
|
||||
3
docs/src/docPages/api/commands/set-text-selection.md
Normal file
3
docs/src/docPages/api/commands/set-text-selection.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# setTextSelection
|
||||
|
||||
TODO
|
||||
@@ -184,6 +184,10 @@
|
||||
link: /api/commands/set-mark
|
||||
- title: setNode
|
||||
link: /api/commands/set-node
|
||||
- title: setNodeSelection
|
||||
link: /api/commands/set-node-selection
|
||||
- title: setTextSelection
|
||||
link: /api/commands/set-text-selection
|
||||
- title: sinkListItem
|
||||
link: /api/commands/sink-list-item
|
||||
- title: splitBlock
|
||||
|
||||
Reference in New Issue
Block a user