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:
@@ -587,14 +587,16 @@ final class _WP_Editors {
|
||||
|
||||
if ( ! wp_is_mobile() ) {
|
||||
if ( $set['_content_editor_dfw'] ) {
|
||||
$mce_buttons[] = 'wp_adv';
|
||||
$mce_buttons[] = 'dfw';
|
||||
} else {
|
||||
$mce_buttons[] = 'fullscreen';
|
||||
$mce_buttons[] = 'wp_adv';
|
||||
}
|
||||
} else {
|
||||
$mce_buttons[] = 'wp_adv';
|
||||
}
|
||||
|
||||
$mce_buttons[] = 'wp_adv';
|
||||
|
||||
/**
|
||||
* Filters the first-row list of TinyMCE buttons (Visual tab).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user