Make WordPress Core

Ticket #27553: 27553.3.buttons.patch

File 27553.3.buttons.patch, 3.0 KB (added by afercia, 11 years ago)

with buttons

  • src/wp-admin/css/edit.css

     
    14311431                padding: 10px 20px;
    14321432        }
    14331433
    1434         a.wp-switch-editor {
     1434        button.wp-switch-editor {
    14351435                font-size: 16px;
    14361436                line-height: 1em;
    14371437                margin: 3px 0 0 7px;
     
    14381438                padding: 12px 15px;
    14391439        }
    14401440
     1441        .tmce-active button.switch-tmce,
     1442        .html-active button.switch-html {
     1443                padding: 12px 15px;
     1444        }
     1445
    14411446        #wp-content-media-buttons a {
    14421447                font-size: 16px;
    14431448                line-height: 37px;
  • src/wp-includes/class-wp-editor.php

     
    177177                                $switch_class = 'tmce-active';
    178178                        }
    179179
    180                         $buttons .= '<a id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</a>\n";
    181                         $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
     180                        $buttons .= '<button type="button" id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</button>\n";
     181                        $buttons .= '<button type="button" id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto(this);">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n";
    182182                }
    183183
    184184                $wrap_class = 'wp-core-ui wp-editor-wrap ' . $switch_class;
  • src/wp-includes/css/buttons.css

     
    149149
    150150.wp-core-ui .button.focus,
    151151.wp-core-ui .button:focus,
    152 .wp-core-ui .button-secondary:focus {
     152.wp-core-ui .button-secondary:focus,
     153.wp-core-ui .wp-editor-tabs button:focus {
    153154        -webkit-box-shadow:
    154155                0 0 0 1px #5b9dd9,
    155156                0 0 2px 1px rgba(30, 140, 190, .8);
  • src/wp-includes/css/editor.css

     
    819819}
    820820
    821821.wp-switch-editor {
    822         background: #ebebeb;
     822        float: left;
     823        box-sizing: content-box;
     824        height: 19px;
    823825        border: 1px solid #dedede;
    824         color: #777;
    825         cursor: pointer;
    826         float: right;
    827         font: 13px/19px "Open Sans", sans-serif;
    828         height: 19px;
    829826        margin: 5px 0 0 5px;
    830827        padding: 3px 8px 4px;
    831828        position: relative;
    832829        top: 1px;
     830        background: #ebebeb;
     831        color: #777;
     832        cursor: pointer;
     833        font: 13px/19px "Open Sans", sans-serif;
    833834}
    834835
    835836.wp-switch-editor:active {
     
    854855        background: #f5f5f5;
    855856        color: #555;
    856857        height: 20px;
     858        padding: 2px 8px 5px;
    857859        border-bottom: none;
    858860}
    859861