From 53b62fe5f43277a3a612fcbc596fcd2efb21c4ba Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 27 Mar 2024 20:24:15 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10766 --- app/src/mobile/editor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts index 055946fe0..f2d70e661 100644 --- a/app/src/mobile/editor.ts +++ b/app/src/mobile/editor.ts @@ -94,5 +94,8 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_ (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === window.siyuan.languages.untitled ? "" : data.data.rootTitle; setEditor(); closePanel(); + app.plugins.forEach(item => { + item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle}); + }); }); };