Merge "CodeMirror: copy tabindex attribute from textarea"

This commit is contained in:
jenkins-bot 2024-03-28 04:55:42 +00:00 committed by Gerrit Code Review
commit 91d1d19398
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -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( {