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.

fix: external newline

johnnyjoy8d9396247b0b
diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx
index 5df810e1a..dcf3890d9 100644
--- a/web/src/components/MemoEditor/Editor/index.tsx
+++ b/web/src/components/MemoEditor/Editor/index.tsx
@@ -211,8 +211,8 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
// inserting the insertText.
// Needs to be called before any async call.
event.preventDefault();
- // Insert the text at the current cursor position
- editorActions.insertText("\n" + insertText);
+ // Insert the text at the current cursor position.
+ editorActions.insertText(insertText);
}
}
};