TinyMCE: Fix keyboard navigation when the dfw button is present but hidden. Ensure that button is added last in the DOM to match where it appears visually.
Props afercia, azaozz. Fixes #46640. Built from https://develop.svn.wordpress.org/trunk@45172 git-svn-id: http://core.svn.wordpress.org/trunk@44981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1273,12 +1273,10 @@ table.links-table {
|
||||
/* DFW 2
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#wp-content-wrap .mce-wp-dfw,
|
||||
#qt_content_dfw {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-editor-expand #wp-content-wrap .mce-wp-dfw,
|
||||
.wp-editor-expand #qt_content_dfw {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
2
wp-admin/css/edit-rtl.min.css
vendored
2
wp-admin/css/edit-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1273,12 +1273,10 @@ table.links-table {
|
||||
/* DFW 2
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
#wp-content-wrap .mce-wp-dfw,
|
||||
#qt_content_dfw {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-editor-expand #wp-content-wrap .mce-wp-dfw,
|
||||
.wp-editor-expand #qt_content_dfw {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
2
wp-admin/css/edit.min.css
vendored
2
wp-admin/css/edit.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1473,12 +1473,20 @@
|
||||
onPostRender: function() {
|
||||
var button = this;
|
||||
|
||||
editor.on( 'init', function() {
|
||||
if ( button.disabled() ) {
|
||||
button.hide();
|
||||
}
|
||||
} );
|
||||
|
||||
$document
|
||||
.on( 'dfw-activate.focus', function() {
|
||||
button.disabled( false );
|
||||
button.show();
|
||||
} )
|
||||
.on( 'dfw-deactivate.focus', function() {
|
||||
button.disabled( true );
|
||||
button.hide();
|
||||
} )
|
||||
.on( 'dfw-on.focus', function() {
|
||||
button.active( true );
|
||||
|
||||
2
wp-admin/js/editor-expand.min.js
vendored
2
wp-admin/js/editor-expand.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user