Environment and browser information.
air : Boolean
chrome : Boolean
cssClass : String
edge : Boolean
gecko : Boolean
hc : Boolean
hidpi : Boolean
iOS : Boolean
ie : Boolean
ie6Compat : Boolean
Indicates that CKEditor is running in an IE6-like environment, which includes IE6 itself as well as IE7, IE8 and IE9 in Quirks Mode.
ie7Compat : Boolean
Indicates that CKEditor is running in an IE7-like environment, which includes IE7 itself and IE8's IE7 Document Mode.
ie8Compat : Boolean
Indicates that CKEditor is running in Internet Explorer 8 on Standards Mode.
ie9Compat : Boolean
Indicates that CKEditor is running in Internet Explorer 9 on Standards Mode.
isCompatible : Boolean
Since CKEditor 4.5.0 this property is a blacklist of browsers incompatible with CKEditor. It means that it is set to
falseonly in browsers that are known to be incompatible. Before CKEditor 4.5.0 this property was a whitelist of browsers that were known to be compatible with CKEditor.
The reason for this change is the rising fragmentation of the browser market (especially the mobile segment). It became too complicated to check in which new environments CKEditor is going to work.
In order to enable CKEditor 4.4.x and below in unsupported environments see the Enabling CKEditor in Unsupported Environments article.
if ( CKEDITOR.env.isCompatible ) alert( 'Your browser is not known to be incompatible with CKEditor!' );
mac : Boolean
mobile : Boolean
needsBrFiller : Boolean
Indicates that CKEditor is running in a browser which uses a bogus
<br>filler in order to correctly display caret in empty blocks.
needsNbspFiller : Boolean
Indicates that CKEditor is running in a browser which needs a non-breaking space filler in order to correctly display caret in empty blocks.
quirks : Boolean
Indicates that CKEditor is running in a Quirks Mode environment.
if ( CKEDITOR.env.quirks ) alert( 'Nooooo!' );
Internet Explorer 10 introduced the New Quirks Mode, which is similar to the Quirks Mode implemented in other modern browsers and defined in the HTML5 specification. It can be handled as the Standards mode, so the value of this property will be set to
The Internet Explorer 5 Quirks mode which is still available in Internet Explorer 10+ sets this value to
trueand version to
Read more: IEBlog
safari : Boolean
version : Number
Contains the browser version.
For Gecko-based browsers (like Firefox) it contains the revision number with first three parts concatenated with a padding zero (e.g. for revision 184.108.40.206 we have 10900).
For WebKit-based browsers (like Safari and Chrome) it contains the WebKit build version (e.g. 522).
For IE browsers, it matches the "Document Mode".
if ( CKEDITOR.env.ie && CKEDITOR.env.version <= 6 ) alert( 'Ouch!' );
webkit : Boolean
isCustomDomain() → Boolean
secure() → Boolean