Ticket #46640: 46640.2.diff
File 46640.2.diff, 2.5 KB (added by , 5 years ago) |
---|
-
src/wp-admin/css/edit.css
1273 1273 /* DFW 2 1274 1274 -------------------------------------------------------------- */ 1275 1275 1276 #wp-content-wrap .mce-wp-dfw,1277 1276 #qt_content_dfw { 1278 1277 display: none; 1279 1278 } 1280 1279 1281 .wp-editor-expand #wp-content-wrap .mce-wp-dfw,1282 1280 .wp-editor-expand #qt_content_dfw { 1283 1281 display: inline-block; 1284 1282 } -
src/wp-includes/class-wp-editor.php
583 583 $mce_buttons = apply_filters( 'teeny_mce_buttons', array( 'bold', 'italic', 'underline', 'blockquote', 'strikethrough', 'bullist', 'numlist', 'alignleft', 'aligncenter', 'alignright', 'undo', 'redo', 'link', 'fullscreen' ), $editor_id ); 584 584 $mce_buttons_2 = $mce_buttons_3 = $mce_buttons_4 = array(); 585 585 } else { 586 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'wp_more', 'spellchecker' );586 $mce_buttons = array( 'formatselect', 'bold', 'italic', 'bullist', 'numlist', 'blockquote', 'alignleft', 'aligncenter', 'alignright', 'link', 'wp_more', 'spellchecker', 'wp_adv' ); 587 587 588 588 if ( ! wp_is_mobile() ) { 589 589 if ( $set['_content_editor_dfw'] ) { 590 // When the distraction-free functionality is available, add its button at the last position. 590 591 $mce_buttons[] = 'dfw'; 591 592 } else { 592 $mce_buttons[] = 'fullscreen'; 593 /* 594 * Otherwise, when the distraction-free functionality is not available 595 * for example because disabled via the `wp_editor_expand` filter, add 596 * the TinyMCE "Fullscreen" button before the "Toolbar Toggle" button. 597 */ 598 array_splice( $mce_buttons, -1, 1, array( 'fullscreen', 'wp_adv' ) ); 593 599 } 594 600 } 595 601 596 $mce_buttons[] = 'wp_adv';597 598 602 /** 599 603 * Filters the first-row list of TinyMCE buttons (Visual tab). 600 604 * -
src/wp-includes/css/editor.css
1269 1269 position: absolute; 1270 1270 top: 0; 1271 1271 right: 0; 1272 margin: 5px 5px 0 0;1272 margin: 7px 7px 0 0; 1273 1273 } 1274 1274 1275 .qt-dfw { 1276 margin-top: 5px; 1277 } 1278 1275 1279 .qt-fullscreen { 1276 1280 position: static; 1277 1281 margin: 2px;