tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
catch editor state done before subscribing
awarm.space
3 months ago
9105cbfd
96b2c0b1
+4
1 changed file
expand all
collapse all
unified
split
components
Blocks
TextBlock
mountProsemirror.ts
+4
components/Blocks/TextBlock/mountProsemirror.ts
···
91
91
editorState.view?.updateState(editorState.editor);
92
92
});
93
93
94
94
+
let editorState = useEditorStates.getState().editorStates[entityID];
95
95
+
if (editorState?.editor && !editorState.initial)
96
96
+
editorState.view?.updateState(editorState.editor);
97
97
+
94
98
return () => {
95
99
unsubscribe();
96
100
view.destroy();