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

index 081c8bd..d236a77 100644 (file)
@@ -278,9 +278,10 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 var pos = 0;
                 
                 for (var i = 0; i < lines.length;i++) {
-                    Roo.log(lines[i].length);
+                    
+                    pos += lines[i].length;
+                    
                     if(pos < curr){
-                        pos += lines[i].length;
                         continue;
                     }