Type Editor / @type-editor/commands / select-parent-node
select-parent-node
Variables
| Variable | Description |
|---|---|
Selects the parent node that wraps the current selection. This command expands the selection to encompass the parent node containing the current selection. It's useful for:
The command finds the deepest node that fully contains the current selection and creates a node selection for it. It will not select the document root node, as that would be the entire document (use The command will fail if:
Param The current editor state Param Optional dispatch function to execute the transaction Example typescript |