Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.6.2
[ckeditor.git]
/
_source
/
core
/
env.js
diff --git
a/_source/core/env.js
b/_source/core/env.js
index
9b73aea
..
61df909
100644
(file)
--- a/
_source/core/env.js
+++ b/
_source/core/env.js
@@
-86,6
+86,15
@@
if ( !CKEDITOR.env )
mobile : ( agent.indexOf( 'mobile' ) > -1 ),
\r
\r
/**
\r
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
* 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
* 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
!env.mobile && (
\r
+
\r
( env.ie && version >= 6 ) ||
\r
( env.gecko && version >= 10801 ) ||
\r
( env.opera && version >= 9.5 ) ||
\r
( env.ie && version >= 6 ) ||
\r
( env.gecko && version >= 10801 ) ||
\r
( env.opera && version >= 9.5 ) ||
\r