This commit is contained in:
Vanessa 2023-05-23 19:53:17 +08:00
parent 73946e1b18
commit 8cc7752cea
2 changed files with 8 additions and 1 deletions

View file

@ -411,6 +411,13 @@ export class Title {
${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14)).format("YYYY-MM-DD HH:mm:ss")}`
}).element);
window.siyuan.menus.menu.popup(position);
this.app?.plugins?.forEach((plugin) => {
plugin.eventBus.emit("click-editortitleicon", {
protyle,
menu: window.siyuan.menus.menu,
data: response.data,
});
});
});
}

View file

@ -22,7 +22,7 @@ type TOperation =
| "removeFlashcards"
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
type TCardType = "doc" | "notebook" | "all"
type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf"
type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon"
declare module "blueimp-md5"