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

index 01dafc6..c652580 100644 (file)
@@ -263,11 +263,11 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 e.preventDefault();
                 Roo.log('TAB');
                 
+                var value = this.getValue();
                 var start = this.el.dom.selectionStart;
-                var end = this.getValue().length;
+                var end = value.length;
                 
-                Roo.log(start);
-                Roo.log(end);
+                this.setValue()
                 
             },