Add a button to upload images into comments (#6092)

This commit is contained in:
Tom Moor
2023-10-29 20:42:49 -04:00
committed by GitHub
parent 44cbf4359f
commit d593976b4d
4 changed files with 72 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ export type Props = Optional<
previewsDisabled?: boolean;
onHeadingsChange?: (headings: Heading[]) => void;
onSynced?: () => Promise<void>;
onPublish?: (event: React.MouseEvent) => any;
onPublish?: (event: React.MouseEvent) => void;
editorStyle?: React.CSSProperties;
};
@@ -138,7 +138,7 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
: 1
);
},
[documents]
[locale, documents]
);
const handleUploadFile = React.useCallback(