Ticket #6089: 6089.patch

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

     
    8686                        mobile : ( agent.indexOf( 'mobile' ) > -1 ),
    8787
    8888                        /**
     89                         * Indicate that the editing infrastructure is supported.
     90                         */
     91                        contenteditable : !! ( document.designMode || document.createElement( 'div' ).contentEditable ),
     92
     93                        /**
    8994                         * Indicates that the browser has a custom domain enabled. This has
    9095                         * been set with "document.domain".
    9196                         * @returns {Boolean} "true" if a custom domain is enabled.
     
    220225                 *     alert( "Your browser is pretty cool!" );
    221226                 */
    222227                env.isCompatible =
    223                         !env.mobile && (
     228                        env.contenteditable && (
    224229                        ( env.ie && version >= 6 ) ||
    225230                        ( env.gecko && version >= 10801 ) ||
    226231                        ( env.opera && version >= 9.5 ) ||
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy