X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fenv.js;h=61df9093023796bf7d40dfe606bd562bc6f82b6c;hp=9b73aead51359d973f06cae75bf90a36e02097f8;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hpb=f0610347140239143439a511ee2bd48cb784f470 diff --git a/_source/core/env.js b/_source/core/env.js index 9b73aea..61df909 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -86,6 +86,15 @@ if ( !CKEDITOR.env ) mobile : ( agent.indexOf( 'mobile' ) > -1 ), /** + * Indicates that CKEditor is running on Apple iPhone/iPad/iPod devices. + * @type Boolean + * @example + * if ( CKEDITOR.env.iOS ) + * alert( "I like little apples!" ); + */ + iOS : /(ipad|iphone|ipod)/.test(agent), + + /** * Indicates that the browser has a custom domain enabled. This has * been set with "document.domain". * @returns {Boolean} "true" if a custom domain is enabled. @@ -239,7 +248,12 @@ if ( !CKEDITOR.env ) * alert( "Your browser is pretty cool!" ); */ env.isCompatible = + + // White list of mobile devices that supports. + env.iOS && version >= 534 || + !env.mobile && ( + ( env.ie && version >= 6 ) || ( env.gecko && version >= 10801 ) || ( env.opera && version >= 9.5 ) ||