projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad314af
)
Roo/form/HtmlEditor/ToolbarContext.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 28 Mar 2012 06:25:51 +0000
(14:25 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 28 Mar 2012 06:25:51 +0000
(14:25 +0800)
Roo/form/HtmlEditor/ToolbarContext.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarContext.js
b/Roo/form/HtmlEditor/ToolbarContext.js
index
c54b9a2
..
bd31a7c
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarContext.js
+++ b/
Roo/form/HtmlEditor/ToolbarContext.js
@@
-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...