|
@@ -24,6 +24,7 @@ import { inlineBackground } from '../../../source-editor/extensions/inline-backg
|
|
|
function extensions(): Extension[] {
|
|
function extensions(): Extension[] {
|
|
|
return [
|
|
return [
|
|
|
EditorView.editable.of(false),
|
|
EditorView.editable.of(false),
|
|
|
|
|
+ EditorView.contentAttributes.of({ tabindex: '0' }),
|
|
|
lineNumbers(),
|
|
lineNumbers(),
|
|
|
EditorView.lineWrapping,
|
|
EditorView.lineWrapping,
|
|
|
indentUnit.of(' '), // TODO: Vary this by file type
|
|
indentUnit.of(' '), // TODO: Vary this by file type
|