Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix upload image insert text

boojack069c5d6a357b
diff --git a/web/src/components/MemoEditor.tsx b/web/src/components/MemoEditor.tsx
index 0c982bc0f..5d138bde8 100644
--- a/web/src/components/MemoEditor.tsx
+++ b/web/src/components/MemoEditor.tsx
@@ -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();