From 5603a152b8122cef71616a009c11a57777321b09 Mon Sep 17 00:00:00 2001 From: Palanikannan M Date: Wed, 15 Jan 2025 13:20:58 +0530 Subject: [PATCH] regression: added the types for onHeadingChange --- packages/editor/src/core/types/editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/editor/src/core/types/editor.ts b/packages/editor/src/core/types/editor.ts index 086713cf6f6..49710b4301a 100644 --- a/packages/editor/src/core/types/editor.ts +++ b/packages/editor/src/core/types/editor.ts @@ -101,6 +101,7 @@ export interface EditorRefApi extends EditorReadOnlyRefApi { getSelectedText: () => string | null; insertText: (contentHTML: string, insertOnNextLine?: boolean) => void; setProviderDocument: (value: Uint8Array) => void; + onHeadingChange: (callback: (headings: IMarking[]) => void) => () => void; } // editor props