ShuffleReferenceFunctions
addShuffleNodes
Function: addShuffleNodes()
function addShuffleNodes<Nodes, Marks>(
schema: Schema<Nodes, Marks>,
content: string,
group: string,
options?: AddShuffleNodesOptions,
): Schema<"container" | "row" | Nodes, Marks>;Defined in: schema.ts:93
Augments the provided schema with the row and container nodes, as well as adding the shuffleStart
and shuffleEnd attributes to every node in the group group. The content argument should be a
content expression, which will
be set on the row and container node specs.
Type Parameters
Nodes
Nodes extends string
Marks
Marks extends string
Parameters
schema
Schema<Nodes, Marks>
The ProseMirror schema to add shuffle nodes and attributes to
content
string
The content expression to add to the row and container node specs
group
string
Every node spec with this group will have shuffle attributes added, and be marked as resizable and draggable.
options?
Returns
Schema<"container" | "row" | Nodes, Marks>