Skip to content

Commit

Permalink
🎨 fix #9454
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 28, 2023
1 parent d9c867b commit 6b41f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/editor/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ export const updatePanelByEditor = (options: {
const models = getAllModels();
updateOutline(models, options.protyle, options.reload);
updateBacklinkGraph(models, options.protyle);
options.protyle.app.plugins.forEach(item => {
item.eventBus.emit("switch-protyle", {protyle:options.protyle});
});
};

export const isCurrentEditor = (blockId: string) => {
Expand Down
1 change: 1 addition & 0 deletions app/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type TEventBus = "ws-main" |
"paste" |
"input-search" |
"loaded-protyle" | "loaded-protyle-dynamic" | "loaded-protyle-static" |
"switch-protyle" |
"destroy-protyle"
type TAVCol =
"text"
Expand Down

0 comments on commit 6b41f7c

Please sign in to comment.