Make WordPress Core


Ignore:
Timestamp:
03/06/2014 10:54:32 PM (11 years ago)
Author:
helen
Message:

At long last, a first pass at bringing the image editor into the media modal. props gcorne, DH-Shredder, tomauger. see #21811.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r27440 r27445  
    560560                    <img src="{{ data.model.url }}" draggable="false" />
    561561                </div>
     562                <# if ( data.attachment ) { #>
     563                    <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Image' ); ?>" />
     564                <# } #>
    562565
    563566                <div class="setting url">
     
    648651            </div>
    649652        </div>
     653    </script>
     654
     655    <script type="text/html" id="tmpl-image-editor">
     656        <div id="media-head-{{{ data.id }}}"></div>
     657        <div id="image-editor-{{{ data.id }}}"></div>
    650658    </script>
    651659
Note: See TracChangeset for help on using the changeset viewer.