TinyMCE: disable the native fullscreen plugin on mobile devices by default.
Props iseulde. Fixes #33137; git-svn-id: https://develop.svn.wordpress.org/trunk@33835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c90fe1198
commit
0807da1bdd
@ -593,10 +593,12 @@ final class _WP_Editors {
|
||||
} else {
|
||||
$mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
|
||||
|
||||
if ( $set['_content_editor_dfw'] ) {
|
||||
$mce_buttons[] = 'dfw';
|
||||
} else {
|
||||
$mce_buttons[] = 'fullscreen';
|
||||
if ( ! wp_is_mobile() ) {
|
||||
if ( $set['_content_editor_dfw'] ) {
|
||||
$mce_buttons[] = 'dfw';
|
||||
} else {
|
||||
$mce_buttons[] = 'fullscreen';
|
||||
}
|
||||
}
|
||||
|
||||
$mce_buttons[] = 'wp_adv';
|
||||
|
Loading…
Reference in New Issue
Block a user