WordPress.org

Make WordPress Core

Ticket #20012: 20012.diff

File 20012.diff, 654 bytes (added by georgestephanis, 2 years ago)
  • wp-includes/class-wp-editor.php

     
    4545                self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() ); 
    4646                self::$this_quicktags = (bool) $set['quicktags']; 
    4747 
     48                // Disable tinymce for the Amazon Silk browser, which doesn't support contentEditable. 
     49                if( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( false !== strpos( $_SERVER['HTTP_USER_AGENT'], '; Silk/' ) ) ) 
     50                        self::$this_tinymce = false; 
     51 
    4852                if ( self::$this_tinymce ) 
    4953                        self::$has_tinymce = true; 
    5054