Make read only more robust (#1492)

This commit is contained in:
MrMugame
2025-08-18 07:16:18 +02:00
committed by GitHub
parent 952d3264fe
commit 6530a9a063
+4 -2
View File
@@ -93,8 +93,10 @@ export function createEditorState(
: [],
],
[
...(readOnly || client.ui.viewState.uiOptions.forcedROMode)
? [EditorView.editable.of(false)]
...(readOnly ||
client.ui.viewState.uiOptions.forcedROMode ||
client.clientConfig.readOnly)
? [EditorView.editable.of(false), EditorState.readOnly.of(true)]
: [],
],