mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Fix js error on mousedown in the editor, props joehoyle, fixes #19165
git-svn-id: https://develop.svn.wordpress.org/trunk@19180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
// show editimage buttons
|
||||
ed.onMouseDown.add(function(ed, e) {
|
||||
|
||||
if ( e.target && (e.target.nodeName == 'IMG' || e.target.firstChild.nodeName == 'IMG') ) {
|
||||
if ( e.target && ( e.target.nodeName == 'IMG' || (e.target.firstChild && e.target.firstChild.nodeName == 'IMG') ) ) {
|
||||
mouse = {
|
||||
x: e.clientX,
|
||||
y: e.clientY,
|
||||
|
||||
Reference in New Issue
Block a user