Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/rte] fix prop types #2420

Merged
merged 2 commits into from Sep 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -45,10 +45,13 @@ export interface RichTextEditorProps
extends DefaultProps<RichTextEditorStylesNames>,
Omit<React.ComponentPropsWithoutRef<'div'>, 'onChange'> {
/** HTML content, value not forced as quill works in uncontrolled mode */
value: string | Delta;
value?: string | Delta;

/** Initial value of input */
defaultValue?: string | Delta;
Jawell marked this conversation as resolved.
Show resolved Hide resolved

/** Called each time value changes */
onChange(value: string, delta: Delta, sources: Sources, editor: Editor.UnprivilegedEditor): void;
onChange?(value: string, delta: Delta, sources: Sources, editor: Editor.UnprivilegedEditor): void;

/** Called when image image is inserted in editor */
onImageUpload?(image: File): Promise<string>;
Expand Down