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:
parent
a231303341
commit
db0ca19899
|
@ -593,10 +593,12 @@ final class _WP_Editors {
|
||||||
} else {
|
} else {
|
||||||
$mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
|
$mce_buttons = array( 'bold', 'italic', 'strikethrough', 'bullist', 'numlist', 'blockquote', 'hr', 'alignleft', 'aligncenter', 'alignright', 'link', 'unlink', 'wp_more', 'spellchecker' );
|
||||||
|
|
||||||
if ( $set['_content_editor_dfw'] ) {
|
if ( ! wp_is_mobile() ) {
|
||||||
$mce_buttons[] = 'dfw';
|
if ( $set['_content_editor_dfw'] ) {
|
||||||
} else {
|
$mce_buttons[] = 'dfw';
|
||||||
$mce_buttons[] = 'fullscreen';
|
} else {
|
||||||
|
$mce_buttons[] = 'fullscreen';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$mce_buttons[] = 'wp_adv';
|
$mce_buttons[] = 'wp_adv';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue