diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 7d6d92660..348a9c5a6 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -270,6 +270,9 @@ const setHTML = (options: { if (protyle.options.render.breadcrumb) { protyle.breadcrumb.render(protyle); } + app.plugins.forEach(item => { + item.eventBus.emit("loaded-protyle", protyle); + }); }; export const disabledForeverProtyle = (protyle: IProtyle) => { diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index ce1fe0ab6..8aa29f05f 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -23,7 +23,7 @@ type TOperation = type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins" type TCardType = "doc" | "notebook" | "all" type TEventBus = "ws-main" | "click-blockicon" | "click-editorcontent" | "click-pdf" | - "click-editortitleicon" | "open-noneditableblock" + "click-editortitleicon" | "open-noneditableblock" | "loaded-protyle" declare module "blueimp-md5"