[wp-trac] [WordPress Trac] #27698: Add hooks to the wpeditimage tinymce plugin and to the image details portion of the media modal

WordPress Trac noreply at wordpress.org
Mon Apr 7 19:44:56 UTC 2014


#27698: Add hooks to the wpeditimage tinymce plugin and to the image details
portion of the media modal
-------------------------+-----------------------------------------
 Reporter:  gcorne       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  javascript, administration
-------------------------+-----------------------------------------

Comment (by azaozz):

 Patch looks good. Wondering if it would be better/easier to trigger custom
 jQuery events instead of TinyMCE events, and pass the editor instance.
 Something like:

 {{{
 if ( typeof window.jQuery !== 'undefined' ) {
   window.jQuery( document ).triggerHandler( 'WPImageData', { editor:
 editor, metadata: metadata, image: imageNode } );
 }
 }}}

 Then that can be used without needing to make a TinyMCE plugin.

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


More information about the wp-trac mailing list