Changeset 19984
- Timestamp:
- 02/24/2012 07:18:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js
r19982 r19984 70 70 // show editimage buttons 71 71 ed.onMouseDown.add(function(ed, e) { 72 73 if ( e.target && ( e.target.nodeName == 'IMG' || (e.target.firstChild && e.target.firstChild.nodeName == 'IMG') ) ) { 72 var target = e.target; 73 74 if ( target.nodeName != 'IMG' ) { 75 if ( target.firstChild && target.firstChild.nodeName == 'IMG' && target.childNodes.length == 1 ) 76 target = target.firstChild; 77 else 78 return; 79 } 80 81 if ( ed.dom.getAttrib(target, 'class').indexOf('mceItem') == -1 ) { 74 82 mouse = { 75 83 x: e.clientX, 76 84 y: e.clientY, 77 img_w: e.target.clientWidth,78 img_h: e.target.clientHeight85 img_w: target.clientWidth, 86 img_h: target.clientHeight 79 87 }; 80 88 81 if ( ed.dom.getAttrib(e.target, 'class').indexOf('mceItem') == -1 ) 82 ed.plugins.wordpress._showButtons(e.target, 'wp_editbtns'); 89 ed.plugins.wordpress._showButtons(target, 'wp_editbtns'); 83 90 } 84 91 });
Note: See TracChangeset
for help on using the changeset viewer.