[wp-trac] [WordPress Trac] #29458: No longer able to catch click event of dashicons edit/delete

WordPress Trac noreply at wordpress.org
Mon Sep 1 21:51:16 UTC 2014


#29458: No longer able to catch click event of dashicons edit/delete
--------------------------+-----------------------------
 Reporter:  programmin    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:  ui, javascript
--------------------------+-----------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 Can't reproduce this. All mouse events are contained inside wpView in both
 3.9 and 4.0. This is necessary to prevent the rest of TinyMCE from
 manipulating the views and hasn't changed. Testing with

 {{{
 tinymce.activeEditor.on( 'click', function() { console.log('mce clicked')
 } );
 }}}

 nothing is logged when clicking anywhere in a view in 3.9 and 4.0RC.

 For images (with or without a caption), the click is not contained. The
 above code logs all clicks, including on the Edit/Delete buttons.

 Tested in FF, Chrome, IE11.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29458#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list