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

index 4b1a32a..4bbdc80 100644 (file)
@@ -270,6 +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);
             },
             
             "home" : function(e){
@@ -299,7 +300,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                     break;
                 }
                 
-                this.el.dom.setSelectionRange(pos, pos)
+                this.el.dom.setSelectionRange(pos, pos);
             },
             
             "end" : function(e){
@@ -328,7 +329,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                     break;
                 }
                 
-                this.el.dom.setSelectionRange(pos, pos)
+                this.el.dom.setSelectionRange(pos, pos);
             },
 
             scope : this,