editor: fix marks lost on node split

This commit is contained in:
Abdullah Atta
2026-03-03 10:36:11 +05:00
committed by Abdullah Atta
parent 8500c971eb
commit ffafd2e787

View File

@@ -106,6 +106,8 @@ export const BlockId = Extension.create({
if (updates.length > 0) {
tr.step(new BatchAttributeStep(updates));
tr.setMeta("ignoreEdit", true);
// Transaction.addStep always clears storedMarks
if (newState.storedMarks) tr.setStoredMarks(newState.storedMarks);
return tr;
}