JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / core / env.js
index 2e6a0ff..b289538 100644 (file)
@@ -71,6 +71,8 @@ if ( !CKEDITOR.env )
 \r
                        quirks : ( document.compatMode == 'BackCompat' ),\r
 \r
+                       mobile : ( agent.indexOf( 'mobile' ) > -1 ),\r
+\r
                        isCustomDomain : function()\r
                        {\r
                                return this.ie && document.domain != window.location.hostname;\r
@@ -176,12 +178,13 @@ if ( !CKEDITOR.env )
                 *     alert( "Your browser is pretty cool!" );\r
                 */\r
                env.isCompatible =\r
+                       !env.mobile && (\r
                        ( env.ie && version >= 6 ) ||\r
                        ( env.gecko && version >= 10801 ) ||\r
                        ( env.opera && version >= 9.5 ) ||\r
                        ( env.air && version >= 1 ) ||\r
                        ( env.webkit && version >= 522 ) ||\r
-                       false;\r
+                       false );\r
 \r
                // The CSS class to be appended on the main UI containers, making it\r
                // easy to apply browser specific styles to it.\r