mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat(editor): improve api for store, and add docs (#10941)
This commit is contained in:
@@ -236,7 +236,7 @@ export class RangeBinding {
|
||||
return;
|
||||
}
|
||||
|
||||
const model = this.host.doc.getBlockById(textSelection.blockId);
|
||||
const model = this.host.doc.getModelById(textSelection.blockId);
|
||||
// If the model is not found, the selection maybe in another editor
|
||||
if (!model) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user