fn

insertBlockBeside

tested

Insert 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

ParameterTypeDescription
blockIdstring—
nodeNode—
options?{ above?: boolean }—

Returns

Command