Roo/form/HtmlEditor.js
authorEdward <edward@roojs.com>
Mon, 8 Jun 2015 06:32:52 +0000 (14:32 +0800)
committerEdward <edward@roojs.com>
Mon, 8 Jun 2015 06:32:52 +0000 (14:32 +0800)
Roo/form/HtmlEditor.js

index 4bbdc80..dbd90f1 100644 (file)
@@ -270,7 +270,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 
                 this.setValue(value.substring(0, start) + "\t" + value.substring(end));
                 
-                this.el.dom.setSelectionRange(end, end);
+                this.el.dom.setSelectionRange(end + 1, end + 1);
             },
             
             "home" : function(e){