Make WordPress Core

Changeset 37174


Ignore:
Timestamp:
04/11/2016 03:11:32 PM (8 years ago)
Author:
ocean90
Message:

TinyMCE, inline link: Make styles for the autocomplete results available on front end.

Also, replace the generic .alignright class with a more specific class to avoid styling issues with themes which have padding/margin attached to .alignright.

Props azaozz, imath.
Fixes #36461.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r37154 r37174  
    17841784    max-height: 200px;
    17851785    overflow-y: auto;
    1786 }
    1787 
    1788 .wplink-autocomplete li {
     1786    padding: 0;
     1787    margin: 0;
     1788    list-style: none;
     1789    position: absolute;
     1790    border: 1px solid #5b9dd9;
     1791    -webkit-box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
     1792    box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
     1793    background-color: #fff;
     1794}
     1795
     1796.ui-autocomplete.wplink-autocomplete li {
     1797    margin-bottom: 0;
     1798    padding: 4px 10px;
    17891799    clear: both;
    17901800    white-space: normal;
     1801    text-align: left;
     1802}
     1803
     1804.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right {
     1805    float: right;
     1806}
     1807
     1808.ui-autocomplete.wplink-autocomplete li.ui-state-focus {
     1809    background-color: #ddd;
     1810    cursor: pointer;
    17911811}
    17921812
  • trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    r37001 r37174  
    421421                    } ).autocomplete( 'instance' )._renderItem = function( ul, item ) {
    422422                        return $( '<li role="option" id="mce-wp-autocomplete-' + item.ID + '">' )
    423                         .append( '<span>' + item.title + '</span>&nbsp;<span class="alignright">' + item.info + '</span>' )
     423                        .append( '<span>' + item.title + '</span>&nbsp;<span class="wp-editor-float-right">' + item.info + '</span>' )
    424424                        .appendTo( ul );
    425425                    };
Note: See TracChangeset for help on using the changeset viewer.