JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.2
[ckeditor.git] / _source / core / env.js
index 9b73aea..61df909 100644 (file)
@@ -86,6 +86,15 @@ if ( !CKEDITOR.env )
                        mobile : ( agent.indexOf( 'mobile' ) > -1 ),\r
 \r
                        /**\r
+                        * Indicates that CKEditor is running on Apple iPhone/iPad/iPod devices.\r
+                        * @type Boolean\r
+                        * @example\r
+                        * if ( CKEDITOR.env.iOS )\r
+                        *     alert( "I like little apples!" );\r
+                        */\r
+                       iOS : /(ipad|iphone|ipod)/.test(agent),\r
+\r
+                       /**\r
                         * Indicates that the browser has a custom domain enabled. This has\r
                         * been set with "document.domain".\r
                         * @returns {Boolean} "true" if a custom domain is enabled.\r
@@ -239,7 +248,12 @@ if ( !CKEDITOR.env )
                 *     alert( "Your browser is pretty cool!" );\r
                 */\r
                env.isCompatible =\r
+\r
+                       // White list of mobile devices that supports.\r
+                       env.iOS && version >= 534 ||\r
+\r
                        !env.mobile && (\r
+\r
                        ( env.ie && version >= 6 ) ||\r
                        ( env.gecko && version >= 10801 ) ||\r
                        ( env.opera && version >= 9.5 ) ||\r