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