chore: fix upload image insert text

This commit is contained in:
boojack 2022-05-22 17:10:46 +08:00
parent 2e5b120986
commit 069c5d6a35

View File

@ -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();