Make read only more robust (#1492)
This commit is contained in:
+4
-2
@@ -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)]
|
||||
: [],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user