Commit 8d939624 authored by johnnyjoy's avatar johnnyjoy

fix: external newline

parent efb8e7ab
...@@ -211,8 +211,8 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef< ...@@ -211,8 +211,8 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
// inserting the insertText. // inserting the insertText.
// Needs to be called before any async call. // Needs to be called before any async call.
event.preventDefault(); event.preventDefault();
// Insert the text at the current cursor position // Insert the text at the current cursor position.
editorActions.insertText("\n" + insertText); editorActions.insertText(insertText);
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment