Make WordPress Core


Ignore:
Timestamp:
04/12/2019 06:07:47 PM (5 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r45066 r45172  
    588588                if ( ! wp_is_mobile() ) {
    589589                    if ( $set['_content_editor_dfw'] ) {
     590                        $mce_buttons[] = 'wp_adv';
    590591                        $mce_buttons[] = 'dfw';
    591592                    } else {
    592593                        $mce_buttons[] = 'fullscreen';
     594                        $mce_buttons[] = 'wp_adv';
    593595                    }
     596                } else {
     597                    $mce_buttons[] = 'wp_adv';
    594598                }
    595 
    596                 $mce_buttons[] = 'wp_adv';
    597599
    598600                /**
Note: See TracChangeset for help on using the changeset viewer.