Roo/form/HtmlEditor.js
authorEdward <edward@roojs.com>
Mon, 8 Jun 2015 09:10:55 +0000 (17:10 +0800)
committerEdward <edward@roojs.com>
Mon, 8 Jun 2015 09:10:55 +0000 (17:10 +0800)
Roo/form/HtmlEditor.js

index 205f100..c8cd1e8 100644 (file)
@@ -364,8 +364,8 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                     return;
                 }
                 
-                this.el.dom.selectionStart = pos;
-                this.el.dom.selectionEnd = curr;
+                this.el.dom.selectionStart = curr;
+                this.el.dom.selectionEnd = pos;
             },
 
             scope : this,