chore: fix upload image insert text

pull/65/head
boojack 3 years ago
parent 2e5b120986
commit 069c5d6a35

@ -250,7 +250,7 @@ const MemoEditor: React.FC<Props> = () => {
const file = inputEl.files[0];
const url = await handleUploadFile(file);
if (url) {
editorRef.current?.insertText(url + " ");
editorRef.current?.insertText(url);
}
};
inputEl.click();

Loading…
Cancel
Save