Make WordPress Core

Ticket #27698: 27698-01.patch

File 27698-01.patch, 1.6 KB (added by gcorne, 11 years ago)
  • src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    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 ) { 
    201201                        metadata.linkClassName = link.className;
    202202                }
    203203
     204                editor.fire( 'WPImageData', { metadata: metadata, image: imageNode } );
     205
    204206                return metadata;
    205207        }
    206208
    tinymce.PluginManager.add( 'wpeditimage', function( editor ) { 
    338340                        dom.remove( captionNode );
    339341                }
    340342
     343                editor.fire( 'WPImageUpdate', { metadata: imageData, image: imageNode } );
     344
    341345                editor.nodeChanged();
    342346                // Refresh the toolbar
    343347                addToolbar( imageNode );
  • src/wp-includes/media-template.php

    diff --git src/wp-includes/media-template.php src/wp-includes/media-template.php
    index 4e20c04..c4f19c4 100644
    function wp_print_media_templates() { 
    652652                                                        </div>
    653653                                                <# } #>
    654654                                        </div>
     655                                        <?php do_action( 'image_details_image_template' ); ?>
    655656                                </div>
    656657                                <div class="column-settings">
    657658                                        <?php
    function wp_print_media_templates() { 
    771772                                                                <span><?php _e('Link CSS Class'); ?></span>
    772773                                                                <input type="text" data-setting="linkClassName" value="{{ data.model.linkClassName }}" />
    773774                                                        </label>
     775
     776                                                        <?php do_action( 'image_details_advanced_template' ); ?>
    774777                                                </div>
    775778                                        </div>
     779                                        <?php do_action( 'image_details_settings_template' ); ?>
    776780                                </div>
    777781                        </div>
    778782                </div>