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 36d17aa commit 375b03bCopy full SHA for 375b03b
packages/core/src/pm-nodes/BlockContainer.ts
@@ -567,7 +567,7 @@ export const BlockContainer = Node.create<{
567
state.selection.from
568
)!;
569
570
- const blockAtDocEnd = false;
+ const blockAtDocEnd = endPos === state.doc.nodeSize - 4;
571
const selectionAtBlockEnd = state.selection.from === endPos - 1;
572
const selectionEmpty = state.selection.empty;
573
const hasChildBlocks = node.childCount === 2;
0 commit comments