Update editor configuration to consider splitView
This commit is contained in:
@@ -392,10 +392,10 @@ export default function App() {
|
|||||||
if (!view) return;
|
if (!view) return;
|
||||||
view.dispatch({
|
view.dispatch({
|
||||||
effects: editableCompartmentRef.current.reconfigure(
|
effects: editableCompartmentRef.current.reconfigure(
|
||||||
EditorView.editable.of(!isViewingHistory && !markdownPreview)
|
EditorView.editable.of(!isViewingHistory && (!markdownPreview || splitView))
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
}, [editorReady, isViewingHistory, markdownPreview]);
|
}, [editorReady, isViewingHistory, markdownPreview, splitView]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user