This commit is contained in:
Vanessa 2023-10-28 15:21:22 +08:00
parent d9c867b789
commit 6b41f7c554
2 changed files with 4 additions and 0 deletions

View file

@ -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) => {

View file

@ -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"