mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-15 15:37:36 +00:00
Set EditorState.readOnly on DocumentDiffViewer (#16756)
GitOrigin-RevId: 4c38441c3ca3010bf28544e237a5b76f7a26b000
This commit is contained in:
parent
d0a9f8c2cb
commit
f06f2ef99e
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue