Commit 069c5d6a authored by boojack's avatar boojack

chore: fix upload image insert text

parent 2e5b1209
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment