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

index 5ede59e..69197db 100644 (file)
@@ -284,7 +284,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 }
                 
                 this.setValue(f.join("\t") + value.substring(end));
-                this.el.dom.setSelectionRange(start, start);
+                this.el.dom.setSelectionRange(start - 1, start - 1);
                 
             },