mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix upload image insert text
This commit is contained in:
@ -250,7 +250,7 @@ const MemoEditor: React.FC<Props> = () => {
|
|||||||
const file = inputEl.files[0];
|
const file = inputEl.files[0];
|
||||||
const url = await handleUploadFile(file);
|
const url = await handleUploadFile(file);
|
||||||
if (url) {
|
if (url) {
|
||||||
editorRef.current?.insertText(url + " ");
|
editorRef.current?.insertText(url);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
inputEl.click();
|
inputEl.click();
|
||||||
|
Reference in New Issue
Block a user