fix: external newline

pull/4757/head
johnnyjoy 6 months ago
parent efb8e7ab0c
commit 8d9396247b

@ -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);
}
}
};

Loading…
Cancel
Save