mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
regression: focus changing issue with the peek overview editor (#4700)
This commit is contained in:
parent
4d17616670
commit
8c5f693214
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user