fn
insertBlockBeside
testedInsert node next to a block — below by default, above with above. The
caret lands at the end of a text node (so a node seeded with / opens the
slash menu), a void node is selected.
Signature
ts
export function insertBlockBeside(blockId: string, node: Node, options:{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
blockId | string | — |
node | Node | — |
options? | { above?: boolean } | — |
Returns
Command