Переглянути джерело

:art: fix https://github.com/siyuan-note/siyuan/issues/10766

Vanessa 1 рік тому
батько
коміт
53b62fe5f4
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      app/src/mobile/editor.ts

+ 3 - 0
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;
         (document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === window.siyuan.languages.untitled ? "" : data.data.rootTitle;
         setEditor();
         setEditor();
         closePanel();
         closePanel();
+        app.plugins.forEach(item => {
+            item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle});
+        });
     });
     });
 };
 };