Make WordPress Core


Ignore:
Timestamp:
03/29/2014 11:57:13 PM (10 years ago)
Author:
azaozz
Message:

Editor:

  • Use standard button styles for the Quicktags buttons.
  • Better style for the TinyMCE buttons (hover/focus/active/disabled).
  • Move the fullscreen (DFW) button to the right.
  • Better style for the Visual/Text buttons in DFW.

Props avryl, see #27279

File:
1 edited

Legend:

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

    r27828 r27857  
    670670            wp_enqueue_script('editor');
    671671
    672         if ( self::$has_quicktags )
    673             wp_enqueue_script('quicktags');
     672        if ( self::$has_quicktags ) {
     673            wp_enqueue_script( 'quicktags' );
     674            wp_enqueue_style( 'buttons' );
     675        }
    674676
    675677        if ( in_array('wplink', self::$plugins, true) || in_array('link', self::$qt_buttons, true) ) {
     
    11161118            <div id="wp-fullscreen-central-toolbar" style="width:<?php echo $width; ?>px;">
    11171119
    1118             <div id="wp-fullscreen-mode-bar"><div id="wp-fullscreen-modes">
    1119                 <a href="#" onclick="wp.editor.fullscreen.switchmode('tinymce');return false;"><?php _e( 'Visual' ); ?></a>
    1120                 <a href="#" onclick="wp.editor.fullscreen.switchmode('html');return false;"><?php _ex( 'Text', 'Name for the Text editor tab (formerly HTML)' ); ?></a>
    1121             </div></div>
     1120            <div id="wp-fullscreen-mode-bar">
     1121                <div id="wp-fullscreen-modes" class="button-group">
     1122                    <a class="button wp-fullscreen-mode-tinymce" href="#" onclick="wp.editor.fullscreen.switchmode( 'tinymce' ); return false;"><?php _e( 'Visual' ); ?></a>
     1123                    <a class="button wp-fullscreen-mode-html" href="#" onclick="wp.editor.fullscreen.switchmode( 'html' ); return false;"><?php _ex( 'Text', 'Name for the Text editor tab (formerly HTML)' ); ?></a>
     1124                </div>
     1125            </div>
    11221126
    11231127            <div id="wp-fullscreen-button-bar"><div id="wp-fullscreen-buttons" class="mce-toolbar">
Note: See TracChangeset for help on using the changeset viewer.