From b64bc8cb6ab4ff7581d125d5aea840c2d2042f14 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Fri, 14 Oct 2022 14:51:26 +0200 Subject: [PATCH] Fix getDefaultEditorState callback --- src/Events/AppEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Events/AppEvents.ts b/src/Events/AppEvents.ts index 6cb2529..3aabbee 100644 --- a/src/Events/AppEvents.ts +++ b/src/Events/AppEvents.ts @@ -73,6 +73,6 @@ function GetDefaultEditorState( eventInitDict?: CustomEventInit): void { const configuration: IConfiguration = eventInitDict?.detail; const editorState = GetDefaultEditorStateAction(configuration); - const customEvent = new CustomEvent('reviveHistory', { detail: editorState }); + const customEvent = new CustomEvent('getDefaultEditorState', { detail: editorState }); root.dispatchEvent(customEvent); }