Ticket #6089: 6089_2.patch

File 6089_2.patch, 1.0 KB (added by Garry Yao, 13 years ago)
  • _source/core/env.js

     
    8686                        mobile : ( agent.indexOf( 'mobile' ) > -1 ),
    8787
    8888                        /**
     89                         * Indicates that CKEditor is running on Apple iPhone/iPad/iPod mobile devices.
     90                         * @type Boolean
     91                         * @example
     92                         * if ( CKEDITOR.env.iMobile )
     93                         *     alert( "I like apples!" );
     94                         */
     95                        iMobile : /(ipad|iphone|ipod)/.test(agent),
     96
     97                        /**
    8998                         * Indicates that the browser has a custom domain enabled. This has
    9099                         * been set with "document.domain".
    91100                         * @returns {Boolean} "true" if a custom domain is enabled.
     
    239248                 *     alert( "Your browser is pretty cool!" );
    240249                 */
    241250                env.isCompatible =
     251
     252                        // White list of mobile devices that supports.
     253                        env.iMobile && version >= 534 ||
     254
    242255                        !env.mobile && (
     256
    243257                        ( env.ie && version >= 6 ) ||
    244258                        ( env.gecko && version >= 10801 ) ||
    245259                        ( env.opera && version >= 9.5 ) ||
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy