mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
chore(code): reintroduce tab index
This commit is contained in:
@@ -18,6 +18,7 @@ export interface EditorConfig {
|
||||
lineWrapping?: boolean;
|
||||
vimKeybindings?: boolean;
|
||||
readOnly?: boolean;
|
||||
tabIndex?: number;
|
||||
onContentChanged?: ContentChangedListener;
|
||||
}
|
||||
|
||||
@@ -81,6 +82,11 @@ export default class CodeMirror extends EditorView {
|
||||
parent: config.parent,
|
||||
extensions
|
||||
});
|
||||
|
||||
if (config.tabIndex) {
|
||||
this.dom.tabIndex = config.tabIndex;
|
||||
}
|
||||
|
||||
this.config = config;
|
||||
this.languageCompartment = languageCompartment;
|
||||
this.historyCompartment = historyCompartment;
|
||||
|
||||
Reference in New Issue
Block a user