Fix getDefaultEditorState callback

This commit is contained in:
Eric NGUYEN 2022-10-14 14:51:26 +02:00
parent 49e051059e
commit b64bc8cb6a

View file

@ -73,6 +73,6 @@ function GetDefaultEditorState(
eventInitDict?: CustomEventInit): void { eventInitDict?: CustomEventInit): void {
const configuration: IConfiguration = eventInitDict?.detail; const configuration: IConfiguration = eventInitDict?.detail;
const editorState = GetDefaultEditorStateAction(configuration); const editorState = GetDefaultEditorStateAction(configuration);
const customEvent = new CustomEvent<IEditorState>('reviveHistory', { detail: editorState }); const customEvent = new CustomEvent<IEditorState>('getDefaultEditorState', { detail: editorState });
root.dispatchEvent(customEvent); root.dispatchEvent(customEvent);
} }