Closed gerbsen closed 4 weeks ago
For CodeMirror 6, all features can be implemented with extensions. https://github.com/acrodata/code-editor/issues/1#issuecomment-2172475058
import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
extensions = [
EditorState.readOnly.of(true),
// or disable the editor
// EditorView.editable.of(false)
];
<diff-editor [originalExtensions]="extensions"
[modifiedExtensions]="extensions" />
hey there! the project here is absolutely awesome. I would really like to use it for my project. There is only one little issue. Is there any way to make the DiffEditor
readOnly
? I looked at the code, but couldn't figure out what to do. :(