Make WordPress Core


Ignore:
Timestamp:
04/01/2016 09:12:18 PM (11 years ago)
Author:
azaozz
Message:

Editor, wpLink:

  • Restore the bottom half of the modal.
  • Make it always expanded and remove the toggle. It is used as advanced link options now, no need to have simple mode.

Props iseulde, adamsilverstein, azaozz.
Fixes #36359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r37091 r37154  
    14131413                <div id="link-selector">
    14141414                        <div id="link-options">
     1415                                <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
    14151416                                <div>
    14161417                                        <label><span><?php _e( 'URL' ); ?></span>
    1417                                         <input id="wp-link-url" type="text" role="combobox" aria-autocomplete="list" aria-expanded="false" placeholder="<?php _e( 'Paste URL or type to search' ); ?>" /></label>
     1418                                        <input id="wp-link-url" type="text" /></label>
    14181419                                </div>
    14191420                                <div class="wp-link-text-field">
    … …  
    14261427                                </div>
    14271428                        </div>
     1429                        <p class="howto"><?php _e( 'Or link to existing content' ); ?></p>
     1430                        <div id="search-panel">
     1431                                <div class="link-search-wrapper">
     1432                                        <label>
     1433                                                <span class="search-label"><?php _e( 'Search' ); ?></span>
     1434                                                <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" />
     1435                                                <span class="spinner"></span>
     1436                                        </label>
     1437                                </div>
     1438                                <div id="search-results" class="query-results" tabindex="0">
     1439                                        <ul></ul>
     1440                                        <div class="river-waiting">
     1441                                                <span class="spinner"></span>
     1442                                        </div>
     1443                                </div>
     1444                                <div id="most-recent-results" class="query-results" tabindex="0">
     1445                                        <div class="query-notice" id="query-notice-message">
     1446                                                <em class="query-notice-default"><?php _e( 'No search term specified. Showing recent items.' ); ?></em>
     1447                                                <em class="query-notice-hint screen-reader-text"><?php _e( 'Search or use up and down arrow keys to select an item.' ); ?></em>
     1448                                        </div>
     1449                                        <ul></ul>
     1450                                        <div class="river-waiting">
     1451                                                <span class="spinner"></span>
     1452                                        </div>
     1453                                </div>
     1454                        </div>
    14281455                </div>
    14291456                <div class="submitbox">
Note: See TracChangeset for help on using the changeset viewer.