TinyMCE: don't load in Opera Mobile as it doesn't support contentEditable yet, fixes #21416

git-svn-id: https://develop.svn.wordpress.org/trunk@21361 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-07-30 00:14:43 +00:00
parent 37431ce817
commit 910d232ac0
1 changed files with 4 additions and 1 deletions

View File

@ -1754,8 +1754,11 @@ function user_can_richedit() {
if ( get_user_option( 'rich_editing' ) == 'true' || ! is_user_logged_in() ) { // default to 'true' for logged out users
if ( $is_safari ) {
$wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] ) >= 534 );
} elseif ( $is_gecko || $is_opera || $is_chrome || $is_IE ) {
} elseif ( $is_gecko || $is_chrome || $is_IE ) {
$wp_rich_edit = true;
} elseif ( $is_opera ) {
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi/') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini/') === false )
$wp_rich_edit = true;
}
}
}