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

index f777b47..e3164d5 100644 (file)
@@ -268,7 +268,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 e.preventDefault();
                 Roo.log('HOME');
                 
-                var curr = this.el.dom.selectionStart - 1;
+                var curr = this.el.dom.selectionStart;
                 var lines = this.getValue().split("\n");
                 
                 if(!lines.length){