mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Set EditorState.readOnly on DocumentDiffViewer (#16756)
GitOrigin-RevId: 4c38441c3ca3010bf28544e237a5b76f7a26b000
This commit is contained in:
@@ -25,6 +25,7 @@ import { inlineBackground } from '../../../source-editor/extensions/inline-backg
|
||||
function extensions(themeOptions: Options): Extension[] {
|
||||
return [
|
||||
EditorView.editable.of(false),
|
||||
EditorState.readOnly.of(true),
|
||||
EditorView.contentAttributes.of({ tabindex: '0' }),
|
||||
lineNumbers(),
|
||||
EditorView.lineWrapping,
|
||||
|
||||
Reference in New Issue
Block a user