mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 18:41:00 +08:00
This commit is contained in:
parent
5897386e60
commit
67082df105
@ -17,4 +17,9 @@ export const destroy = (protyle: IProtyle) => {
|
|||||||
protyle.ws.send("closews", {});
|
protyle.ws.send("closews", {});
|
||||||
}, 10240);
|
}, 10240);
|
||||||
}
|
}
|
||||||
|
protyle.app.plugins.forEach(item => {
|
||||||
|
item.eventBus.emit("destroy-protyle", {
|
||||||
|
protyle,
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
@ -265,6 +265,12 @@ const setHTML = (options: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE)) {
|
if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE)) {
|
||||||
|
protyle.app.plugins.forEach(item => {
|
||||||
|
item.eventBus.emit("loaded-protyle-dynamic", {
|
||||||
|
protyle,
|
||||||
|
positon: options.action.includes(Constants.CB_GET_APPEND) ? "afterend" : "beforebegin"
|
||||||
|
});
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (protyle.options.render.breadcrumb) {
|
if (protyle.options.render.breadcrumb) {
|
||||||
|
3
app/src/types/index.d.ts
vendored
3
app/src/types/index.d.ts
vendored
@ -46,7 +46,8 @@ type TEventBus = "ws-main" |
|
|||||||
"open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" |
|
"open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" |
|
||||||
"open-siyuan-url-plugin" | "open-siyuan-url-block" |
|
"open-siyuan-url-plugin" | "open-siyuan-url-block" |
|
||||||
"input-search" |
|
"input-search" |
|
||||||
"loaded-protyle"
|
"loaded-protyle" | "loaded-protyle-dynamic"|
|
||||||
|
"destroy-protyle"
|
||||||
type TAVCol =
|
type TAVCol =
|
||||||
"text"
|
"text"
|
||||||
| "date"
|
| "date"
|
||||||
|
Loading…
Reference in New Issue
Block a user