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

index 5bf1394..46b4662 100644 (file)
@@ -278,7 +278,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 Roo.log(curr);
                 for (var i = 0; i < lines.length;i++) {
                     
-                    pos += lines[i].length + 1;
+                    pos += lines[i].length + i;
                     Roo.log(pos);
                     if(pos < curr){
                         continue;