We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e01080 commit a17a960Copy full SHA for a17a960
packages/core/src/blocks/ListItem/NumberedListItem/IndexingPlugin.ts
@@ -112,10 +112,11 @@ function getDecorations(
112
);
113
114
if (existingDecorations.length === 0) {
115
+ const blockNode = tr.doc.nodeAt(pos + 1);
116
// Create a widget decoration to display the index
117
decorationsToAdd.push(
118
// move in by 1 to account for the block container
- Decoration.node(pos + 1, pos + node.nodeSize - 1, {
119
+ Decoration.node(pos + 1, pos + 1 + blockNode!.nodeSize, {
120
"data-index": index.toString(),
121
}),
122
0 commit comments