diff --git src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
index a6c3502..97810b6 100644
|
|
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
201 | 201 | metadata.linkClassName = link.className; |
202 | 202 | } |
203 | 203 | |
| 204 | editor.fire( 'WPImageData', { metadata: metadata, image: imageNode } ); |
| 205 | |
204 | 206 | return metadata; |
205 | 207 | } |
206 | 208 | |
… |
… |
tinymce.PluginManager.add( 'wpeditimage', function( editor ) { |
338 | 340 | dom.remove( captionNode ); |
339 | 341 | } |
340 | 342 | |
| 343 | editor.fire( 'WPImageUpdate', { metadata: imageData, image: imageNode } ); |
| 344 | |
341 | 345 | editor.nodeChanged(); |
342 | 346 | // Refresh the toolbar |
343 | 347 | addToolbar( imageNode ); |
diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
index 4e20c04..c4f19c4 100644
|
|
function wp_print_media_templates() { |
652 | 652 | </div> |
653 | 653 | <# } #> |
654 | 654 | </div> |
| 655 | <?php do_action( 'image_details_image_template' ); ?> |
655 | 656 | </div> |
656 | 657 | <div class="column-settings"> |
657 | 658 | <?php |
… |
… |
function wp_print_media_templates() { |
771 | 772 | <span><?php _e('Link CSS Class'); ?></span> |
772 | 773 | <input type="text" data-setting="linkClassName" value="{{ data.model.linkClassName }}" /> |
773 | 774 | </label> |
| 775 | |
| 776 | <?php do_action( 'image_details_advanced_template' ); ?> |
774 | 777 | </div> |
775 | 778 | </div> |
| 779 | <?php do_action( 'image_details_settings_template' ); ?> |
776 | 780 | </div> |
777 | 781 | </div> |
778 | 782 | </div> |