Skip to content

Commit

Permalink
regression: added the types for onHeadingChange
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Jan 15, 2025
1 parent f78e367 commit 5603a15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/core/types/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5603a15

Please sign in to comment.