[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 19:55:54 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:  Awaiting Review
Component:  Media           |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 In WP4 RC it's no longer possible to catch the dashicons edit button click
 through the tinyMCE onclick event.

 For example:


 {{{
 tinymce.activeEditor.on('click', function() {alert('clicked')} )
 }}}


 Never alerts. Is there a reason something's doing preventdefault or
 preventBubble? 3.9 was not affected by this. Are all shortcodes now
 '''required''' to do wp.mce.views.register(shortcodename, object) and
 include edit: function in the object?

 Related:  (#28169)

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


More information about the wp-trac mailing list