mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 13:56:44 +00:00
CodeMirror: copy tabindex attribute from textarea
The Tab key should navigate to the edit summary from the editor, or to the Realtime Preview pane if it is open. Change-Id: I7810bfd098f6b9dd5afab9aa534685d3e4166af6
This commit is contained in:
parent
6be3bf62f0
commit
432e868f2e
2
resources/dist/codemirror.js
vendored
2
resources/dist/codemirror.js
vendored
File diff suppressed because one or more lines are too long
|
@ -155,7 +155,8 @@ class CodeMirror {
|
|||
accesskey: this.$textarea.attr( 'accesskey' ),
|
||||
// Classes need to be on .cm-content to have precedence over .cm-scroller
|
||||
class: classList.join( ' ' ),
|
||||
spellcheck: 'true'
|
||||
spellcheck: 'true',
|
||||
tabindex: this.$textarea.attr( 'tabindex' )
|
||||
} ),
|
||||
// .cm-editor element (contains the whole CodeMirror UI)
|
||||
EditorView.editorAttributes.of( {
|
||||
|
|
Loading…
Reference in a new issue