mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: use markdown image syntax (#83)
This commit is contained in:
@ -80,7 +80,7 @@ const MemoEditor: React.FC<Props> = () => {
|
||||
const file = event.clipboardData.files[0];
|
||||
const url = await handleUploadFile(file);
|
||||
if (url) {
|
||||
editorRef.current?.insertText(url + " ");
|
||||
editorRef.current?.insertText(``);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -91,7 +91,7 @@ const MemoEditor: React.FC<Props> = () => {
|
||||
const file = event.dataTransfer.files[0];
|
||||
const url = await handleUploadFile(file);
|
||||
if (url) {
|
||||
editorRef.current?.insertText(url);
|
||||
editorRef.current?.insertText(``);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -246,7 +246,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(``);
|
||||
}
|
||||
};
|
||||
inputEl.click();
|
||||
|
Reference in New Issue
Block a user