use 2 spaces for tabs

This commit is contained in:
Ryan Peters 2023-01-26 13:32:51 -05:00
parent b1a5d24d6c
commit 91b402deac

View File

@ -81,11 +81,11 @@ $(function () {
// set textarea value to: text before caret + tab + text after caret
$this.val($this.val().substring(0, start)
+ '\t'
+ ' '
+ $this.val().substring(end));
// put caret at right position again
this.selectionStart = this.selectionEnd = start + 1;
this.selectionStart = this.selectionEnd = start + 2;
// prevent the focus lose
return false;