mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 16:56:10 +01:00
This commit is contained in:
parent
d9c867b789
commit
6b41f7c554
2 changed files with 4 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue