From 0abf0436520ebed0a2f99cbf9dcfc40fffc50fcc Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 18 Jul 2022 16:48:36 +0200 Subject: [PATCH] Fixes #29 --- packages/plugs/markdown/markdown.plug.yaml | 3 ++- packages/web/editor.tsx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugs/markdown/markdown.plug.yaml b/packages/plugs/markdown/markdown.plug.yaml index ccad33c2..4e53d55d 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 e94b7d40..1bb33b1c 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); } }