Ticket #46640: 46640.3.diff
File 46640.3.diff, 2.2 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/wp/editor/dfw.js
1473 1473 onPostRender: function() { 1474 1474 var button = this; 1475 1475 1476 editor.on( 'init', function() { 1477 if ( button.disabled() ) { 1478 button.hide(); 1479 } 1480 } ); 1481 1476 1482 $document 1477 1483 .on( 'dfw-activate.focus', function() { 1478 1484 button.disabled( false ); 1485 button.show(); 1479 1486 } ) 1480 1487 .on( 'dfw-deactivate.focus', function() { 1481 1488 button.disabled( true ); 1489 button.hide(); 1482 1490 } ) 1483 1491 .on( 'dfw-on.focus', function() { 1484 1492 button.active( true ); -
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
587 587 588 588 if ( ! wp_is_mobile() ) { 589 589 if ( $set['_content_editor_dfw'] ) { 590 $mce_buttons[] = 'wp_adv'; 590 591 $mce_buttons[] = 'dfw'; 591 592 } else { 592 593 $mce_buttons[] = 'fullscreen'; 594 $mce_buttons[] = 'wp_adv'; 593 595 } 596 } else { 597 $mce_buttons[] = 'wp_adv'; 594 598 } 595 599 596 $mce_buttons[] = 'wp_adv';597 598 600 /** 599 601 * Filters the first-row list of TinyMCE buttons (Visual tab). 600 602 * -
src/wp-includes/css/editor.css
1269 1269 position: absolute; 1270 1270 top: 0; 1271 1271 right: 0; 1272 } 1273 1274 .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw { 1275 margin: 7px 7px 0 0; 1276 } 1277 1278 .qt-dfw { 1272 1279 margin: 5px 5px 0 0; 1273 1280 } 1274 1281