Type Editor / @type-editor/commands / select-node-forward
select-node-forward
Variables
| Variable | Description |
|---|---|
Selects the node after the cursor when at the end of a textblock. This command provides fallback behavior for the Delete/Forward-Delete key when structural deletion isn't possible. When the cursor is at the end of a textblock and normal forward joining fails, this command selects the node after the textblock (if it's selectable), allowing the user to delete it with a subsequent keypress. This is particularly useful for:
The command only works when:
Param The current editor state Param Optional dispatch function to execute the transaction Param Optional editor view for accurate cursor position detection Example typescript |