Merge pull request #8904 from streetwriters/editor/fix-heading-plugin

This commit is contained in:
Abdullah Atta
2025-11-03 10:29:23 +05:00

View File

@@ -365,6 +365,8 @@ const headingUpdatePlugin = new Plugin({
newDoc.descendants((newNode, pos) => {
if (newNode.type.name === "heading") {
if (pos >= oldDoc.content.size) return;
const oldNode = oldDoc.nodeAt(pos);
if (
oldNode &&