Type Editor / @type-editor/commands / join-list-item-backward
join-list-item-backward
Variables
| Variable | Description |
|---|---|
Handles backspace at the start of the first paragraph of a list item when the previous sibling list item also ends with a paragraph. In the default merges the two list items, producing a single list item with two paragraphs: This command goes one step further and also merges the two paragraphs, inserting a single space between the text content so the result is: The command is intentionally narrow: it only fires when
All other cursor positions fall through to the normal Param The current editor state. Param Optional dispatch function to execute the transaction. Param Optional editor view for bidirectional-text detection. |