From 8d9396247b0b5e5c14ae746e48a206eee4bd5201 Mon Sep 17 00:00:00 2001 From: johnnyjoy Date: Wed, 4 Jun 2025 21:28:58 +0800 Subject: [PATCH] fix: external newline --- web/src/components/MemoEditor/Editor/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } };