From f06f2ef99ef629669f960aae0e73d08c9ad182b2 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 1 Feb 2024 09:40:49 +0000 Subject: [PATCH] Set EditorState.readOnly on DocumentDiffViewer (#16756) GitOrigin-RevId: 4c38441c3ca3010bf28544e237a5b76f7a26b000 --- .../history/components/diff-view/document-diff-viewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/js/features/history/components/diff-view/document-diff-viewer.tsx b/services/web/frontend/js/features/history/components/diff-view/document-diff-viewer.tsx index aefaec55be..5ed5b4bcf7 100644 --- a/services/web/frontend/js/features/history/components/diff-view/document-diff-viewer.tsx +++ b/services/web/frontend/js/features/history/components/diff-view/document-diff-viewer.tsx @@ -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,