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

index 705a5a2..bb7be7f 100644 (file)
@@ -330,6 +330,12 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                 if(!lines.length){
                     return;
                 }
+                
+                if(e.ctrlKey){
+                    this.el.dom.setSelectionRange(this.getValue().length, this.getValue().length);
+                    return;
+                }
+                
                 var pos = 0;
                 
                 for (var i = 0; i < lines.length;i++) {