Set EditorState.readOnly on DocumentDiffViewer (#16756)

GitOrigin-RevId: 4c38441c3ca3010bf28544e237a5b76f7a26b000
This commit is contained in:
Alf Eaton 2024-02-01 09:40:49 +00:00 committed by Copybot
parent d0a9f8c2cb
commit f06f2ef99e

View file

@ -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,