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 url = await handleUploadFile(file);
|
||||
if (url) {
|
||||
editorRef.current?.insertText(url + " ");
|
||||
editorRef.current?.insertText(url);
|
||||
}
|
||||
};
|
||||
inputEl.click();
|
||||
|
Reference in New Issue
Block a user