Make WordPress Core

Ticket #27553: 27553.2.patch

File 27553.2.patch, 1.6 KB (added by iseulde, 11 years ago)
  • src/wp-includes/class-wp-editor.php

     
    148148                                $switch_class = 'tmce-active';
    149149                        }
    150150
    151                         $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";
    152                         $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto(this);">' . __('Visual') . "</a>\n";
     151                        $buttons .= '<a id="' . $editor_id . '-tmce" class="wp-switch-editor switch-tmce" onclick="switchEditors.switchto( this ); return false;" href="#">' . __('Visual') . "</a>\n";
     152                        $buttons .= '<a id="' . $editor_id . '-html" class="wp-switch-editor switch-html" onclick="switchEditors.switchto( this ); return false;" href="#">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</a>\n";
     153                       
    153154                }
    154155
    155156                echo '<div id="wp-' . $editor_id . '-wrap" class="wp-core-ui wp-editor-wrap ' . $switch_class . '">';
  • src/wp-includes/css/editor.css

     
    745745        border: 1px solid #dedede;
    746746        color: #777;
    747747        cursor: pointer;
    748         float: right;
     748        float: left;
    749749        font: 13px/19px "Open Sans", sans-serif;
     750        text-decoration: none;
    750751        height: 19px;
    751752        margin: 5px 0 0 5px;
    752753        padding: 3px 8px 4px;