Type Editor / @type-editor/commands / auto-join
auto-join
Functions
| Function | Description |
|---|---|
Wraps a command to automatically join adjacent nodes when they become joinable after the command executes. This higher-order function takes a command and a joinability criterion, and returns a new command that will automatically join adjacent nodes that meet the criterion after the original command's transformation is applied. Nodes are considered joinable when they are of the same type and when the Example typescript |