mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
editor: do not convert \n characters to paragraphs
This commit is contained in:
@@ -118,7 +118,7 @@ export function useEditorController(update: () => void): EditorController {
|
||||
if (!editor) break;
|
||||
const { from, to } = editor.state.selection;
|
||||
editor?.commands.setContent(htmlContentRef.current, false, {
|
||||
preserveWhitespace: "full"
|
||||
preserveWhitespace: true
|
||||
});
|
||||
editor.commands.setTextSelection({
|
||||
from,
|
||||
|
||||
Reference in New Issue
Block a user