use 2 spaces for tabs
This commit is contained in:
parent
b1a5d24d6c
commit
91b402deac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user