mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: external newline
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user