Make WordPress Core


Ignore:
Timestamp:
04/07/2014 01:09:38 AM (11 years ago)
Author:
azaozz
Message:

TinyMCE:

  • Tighten up button styles, add :hover for .mce-active buttons.
  • Pad only the first toolbar row and remove the padding in both toolbars if the editor doesn't have a DFW mode.

Part props avryl, see #27279

File:
1 edited

Legend:

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

    r27950 r27978  
    169169        }
    170170
    171         echo '<div id="wp-' . $editor_id . '-wrap" class="wp-core-ui wp-editor-wrap ' . $switch_class . '">';
     171        $wrap_class = 'wp-core-ui wp-editor-wrap ' . $switch_class;
     172
     173        if ( $set['dfw'] ) {
     174            $wrap_class .= ' has-dfw';
     175        }
     176
     177        echo '<div id="wp-' . $editor_id . '-wrap" class="' . $wrap_class . '">';
    172178
    173179        if ( self::$editor_buttons_css ) {
Note: See TracChangeset for help on using the changeset viewer.