TinyMCE: disable the native fullscreen plugin on mobile devices by default.

Props iseulde. Fixes #33137;
Built from https://develop.svn.wordpress.org/trunk@33835


git-svn-id: http://core.svn.wordpress.org/trunk@33803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-08-31 22:45:22 +00:00
parent a231303341
commit db0ca19899
2 changed files with 7 additions and 5 deletions

View File

@ -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';

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33834';
$wp_version = '4.4-alpha-33835';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.