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

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