mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-12 06:15:27 +00:00
CodeMirror: indent with \t
Based on the discussion, the default indent unit should be `\t` instead of spaces. Bug: T376351 Change-Id: Ib369501019e15c3d9bb7e83a6518c71896cecddc
This commit is contained in:
parent
c4baf83933
commit
a91eb00b5d
|
@ -13,6 +13,7 @@ const {
|
|||
highlightSpecialChars,
|
||||
history,
|
||||
historyKeymap,
|
||||
indentUnit,
|
||||
keymap,
|
||||
lineNumbers,
|
||||
rectangularSelection,
|
||||
|
@ -134,6 +135,7 @@ class CodeMirror {
|
|||
this.dirExtension,
|
||||
this.searchExtension,
|
||||
this.preferences.extension,
|
||||
indentUnit.of( '\t' ),
|
||||
EditorState.readOnly.of( this.readOnly ),
|
||||
EditorView.domEventHandlers( {
|
||||
blur: () => {
|
||||
|
|
Loading…
Reference in a new issue