Type Editor / @type-editor/commands / lift
lift
Variables
| Variable | Description |
|---|---|
Lifts the selected block out of its parent node. This command takes the selected block (or the closest ancestor block containing the selection) and moves it one level up in the document hierarchy by removing its parent wrapper. This is commonly used to:
The command will only succeed if the lift operation is structurally valid according to the schema (i.e., the parent node can be removed without violating content constraints). Param The current editor state Param Optional dispatch function to execute the transaction Example typescript |