Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 28 Mar 2012 06:25:51 +0000 (14:25 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 28 Mar 2012 06:25:51 +0000 (14:25 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

index c54b9a2..bd31a7c 100644 (file)
@@ -283,7 +283,8 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
         
         // http://developer.yahoo.com/yui/docs/simple-editor.js.html
         // selectNode - might want to handle IE?
-        if ((ev.type == 'mouseup' || ev.type == 'click' ) &&
+        if (ev.type &&
+            (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...