Vanessa 2025-08-12 10:27:37 +08:00
parent a30f229ade
commit ec15f672c3
2 changed files with 4 additions and 1 deletions

View file

@ -38,4 +38,7 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {
resize(protyle);
}
hideElements(["gutterOnly", "toolbar", "select", "hint", "util"], protyle);
protyle.app.plugins.forEach(item => {
item.eventBus.emit("switch-protyle-mode", {protyle});
});
};

View file

@ -81,7 +81,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
"paste" |
"input-search" |
"loaded-protyle-dynamic" | "loaded-protyle-static" |
"switch-protyle" |
"switch-protyle" | "switch-protyle-mode" |
"destroy-protyle" |
"lock-screen" |
"mobile-keyboard-show" | "mobile-keyboard-hide"