mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
a30f229ade
commit
ec15f672c3
2 changed files with 4 additions and 1 deletions
|
@ -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});
|
||||
});
|
||||
};
|
||||
|
|
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue