diff --git a/packages/plugs/markdown/markdown.plug.yaml b/packages/plugs/markdown/markdown.plug.yaml index ccad33c..4e53d55 100644 --- a/packages/plugs/markdown/markdown.plug.yaml +++ b/packages/plugs/markdown/markdown.plug.yaml @@ -12,4 +12,5 @@ functions: events: - plug:load - editor:updated - - editor:pageSwitched + - editor:pageLoaded + - editor:pageReloaded diff --git a/packages/web/editor.tsx b/packages/web/editor.tsx index e94b7d4..1bb33b1 100644 --- a/packages/web/editor.tsx +++ b/packages/web/editor.tsx @@ -582,6 +582,8 @@ export class Editor { if (loadingDifferentPage) { await this.eventHook.dispatchEvent("editor:pageLoaded", pageName); + } else { + await this.eventHook.dispatchEvent("editor:pageReloaded", pageName); } }