fix: external newline
This commit is contained in:
parent
efb8e7ab0c
commit
8d9396247b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue