Explorar el Código

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

Vanessa hace 1 año
padre
commit
53b62fe5f4
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;
         setEditor();
         closePanel();
+        app.plugins.forEach(item => {
+            item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle});
+        });
     });
 };