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

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