Roo/form/HtmlEditor.js
authorEdward <edward@roojs.com>
Mon, 8 Jun 2015 08:55:03 +0000 (16:55 +0800)
committerEdward <edward@roojs.com>
Mon, 8 Jun 2015 08:55:03 +0000 (16:55 +0800)
Roo/form/HtmlEditor.js

index 136f0e4..c333df9 100644 (file)
@@ -269,7 +269,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 
                 if(!e.shiftKey){
                     
-                    this.setValue(value.substring(0, start) + "\t" + " ");
+                    this.setValue(value.substring(0, start) + "\t" + value.substring(end));
                 
                     this.el.dom.setSelectionRange(end + 1, end + 1);
                     return;