refactor(editor): rename model.doc to store (#12172)

This commit is contained in:
Saul-Mirone
2025-05-07 09:17:01 +00:00
parent eb62d0e853
commit 95b9e4b3d0
95 changed files with 264 additions and 246 deletions

View File

@@ -440,7 +440,7 @@ export async function assertParentBlockId(
if (!model) {
throw new Error(`Block with id ${blockId} not found`);
}
return model.doc.getParent(model)?.id;
return model.store.getParent(model)?.id;
},
{ blockId }
);
@@ -458,7 +458,7 @@ export async function assertParentBlockFlavour(
if (!model) {
throw new Error(`Block with id ${blockId} not found`);
}
return model.doc.getParent(model)?.flavour;
return model.store.getParent(model)?.flavour;
},
{ blockId }
);