Skip to content

Commit

Permalink
regression: focus changing issue with the peek overview editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Jun 4, 2024
1 parent 77b73dc commit e62af5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/core/src/hooks/use-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const useEditor = ({
if (value === null || value === undefined) return;
if (editor && !editor.isDestroyed && !editor.storage.image.uploadInProgress) {
try {
editor.commands.setContent(value);
editor.commands.setContent(value, false, { preserveWhitespace: "full" });
const currentSavedSelection = savedSelectionRef.current;
if (currentSavedSelection) {
const docLength = editor.state.doc.content.size;
Expand Down

0 comments on commit e62af5f

Please sign in to comment.