mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
chore(editor): rename std.doc to std.store (#9596)
This commit is contained in:
@@ -23,7 +23,7 @@ export function forwardDelete(std: BlockStdScope): true | undefined {
|
||||
const text = std.selection.find(TextSelection);
|
||||
if (!text) return;
|
||||
const isCollapsed = text.isCollapsed();
|
||||
const doc = std.doc;
|
||||
const doc = std.store;
|
||||
const model = doc.getBlock(text.from.blockId)?.model;
|
||||
if (!model || !matchFlavours(model, ['affine:list'])) return;
|
||||
const isEnd = isCollapsed && text.from.index === model.text.length;
|
||||
|
||||
Reference in New Issue
Block a user