diff --git a/components/Blocks/TextBlock/mountProsemirror.ts b/components/Blocks/TextBlock/mountProsemirror.ts index e77b36bd..f4a59e32 100644 --- a/components/Blocks/TextBlock/mountProsemirror.ts +++ b/components/Blocks/TextBlock/mountProsemirror.ts @@ -91,6 +91,10 @@ export function useMountProsemirror({ props }: { props: BlockProps }) { editorState.view?.updateState(editorState.editor); }); + let editorState = useEditorStates.getState().editorStates[entityID]; + if (editorState?.editor && !editorState.initial) + editorState.view?.updateState(editorState.editor); + return () => { unsubscribe(); view.destroy();