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.

git-svn-id: https://develop.svn.wordpress.org/trunk@45172 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2019-04-12 18:07:47 +00:00
parent 908b8238b9
commit ac97906269
4 changed files with 19 additions and 4 deletions
+4 -2
View File
@@ -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).
*