Make WordPress Core


Ignore:
Timestamp:
05/10/2014 11:35:08 PM (13 years ago)
Author:
wonderboymusic
Message:

First pass at wpview logic for the [embed] shortcode. URLs on a their own line are parsed as well. The toolbar will appear with the "remove" button when the view is clicked. Edit has not been implemented yet.

Props avryl, wonderboymusic.
See #28195.

File:
1 edited

Legend:

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

    r28343 r28358  
    10461046        </script>
    10471047
     1048        <script type="text/html" id="tmpl-editor-embed">
     1049                <div class="toolbar">
     1050                        <div class="dashicons dashicons-no-alt remove"></div>
     1051                </div>
     1052                {{{ data.content }}}
     1053                <div class="wpview-overlay"></div>
     1054        </script>
     1055
    10481056        <?php
    10491057
Note: See TracChangeset for help on using the changeset viewer.