mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): set readonly (#9475)
This commit is contained in:
@@ -79,7 +79,7 @@ async function initEmptyEditor({
|
||||
async function waitForMountPageEditor(
|
||||
doc: ReturnType<typeof collection.createDoc>
|
||||
) {
|
||||
if (!doc.ready) doc.load();
|
||||
doc.load();
|
||||
|
||||
if (!doc.root) {
|
||||
await new Promise(resolve => doc.slots.rootAdded.once(resolve));
|
||||
|
||||
Reference in New Issue
Block a user