We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089d9a8 commit d9cfc08Copy full SHA for d9cfc08
packages/editor/core/src/hooks/use-editor.tsx
@@ -112,7 +112,7 @@ export const useEditor = ({
112
if (value === null || value === undefined) return;
113
if (editor && !editor.isDestroyed && !editor.storage.image.uploadInProgress) {
114
try {
115
- editor.commands.setContent(value);
+ editor.commands.setContent(value, false, { preserveWhitespace: "full" });
116
const currentSavedSelection = savedSelectionRef.current;
117
if (currentSavedSelection) {
118
const docLength = editor.state.doc.content.size;
0 commit comments