diff --git a/packages/playground/apps/default/utils/editor.ts b/packages/playground/apps/default/utils/editor.ts index 772147d1f086..bf6ec0647336 100644 --- a/packages/playground/apps/default/utils/editor.ts +++ b/packages/playground/apps/default/utils/editor.ts @@ -33,6 +33,7 @@ export async function mountDefaultPageEditor(workspace: Workspace) { if (!target) { throw new Error(`Failed to jump to page ${pageId}`); } + target.load(); editor.page = target; }); diff --git a/packages/playground/apps/starter/data/multiple-editor.ts b/packages/playground/apps/starter/data/multiple-editor.ts index 46964bb1f74d..32d24078a5f3 100644 --- a/packages/playground/apps/starter/data/multiple-editor.ts +++ b/packages/playground/apps/starter/data/multiple-editor.ts @@ -30,6 +30,7 @@ export const multiEditor: InitFn = (workspace: Workspace, id: string) => { if (!target) { throw new Error(`Failed to jump to page ${pageId}`); } + target.load(); editor.page = target; }); @@ -77,6 +78,7 @@ export const multiEditorVertical: InitFn = ( if (!target) { throw new Error(`Failed to jump to page ${pageId}`); } + target.load(); editor.page = target; }); app.append(editor); diff --git a/packages/playground/apps/starter/utils/editor.ts b/packages/playground/apps/starter/utils/editor.ts index 2148a43edf16..7cbb2f054ec3 100644 --- a/packages/playground/apps/starter/utils/editor.ts +++ b/packages/playground/apps/starter/utils/editor.ts @@ -31,6 +31,7 @@ export async function mountDefaultPageEditor(workspace: Workspace) { if (!target) { throw new Error(`Failed to jump to page ${pageId}`); } + target.load(); editor.page = target; });