Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 03:24:15 +0000 (11:24 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 27 Mar 2012 03:24:15 +0000 (11:24 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index 8a00965..8678b6b 100644 (file)
@@ -285,7 +285,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
         if (ev.type == 'mouseup' && ev.target && ev.target.tagName == 'IMG') {
             // they have click on an image...
             // let's see if we can change the selection...
-            sel = ev;
+            sel = ev.target;
             
         }