Skip to content

Commit d9cfc08

Browse files
Palanikannan1437sriramveeraghanta
authored andcommitted
regression: focus changing issue with the peek overview editor (#4700)
1 parent 089d9a8 commit d9cfc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/core/src/hooks/use-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const useEditor = ({
112112
if (value === null || value === undefined) return;
113113
if (editor && !editor.isDestroyed && !editor.storage.image.uploadInProgress) {
114114
try {
115-
editor.commands.setContent(value);
115+
editor.commands.setContent(value, false, { preserveWhitespace: "full" });
116116
const currentSavedSelection = savedSelectionRef.current;
117117
if (currentSavedSelection) {
118118
const docLength = editor.state.doc.content.size;

0 commit comments

Comments
 (0)