X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fenv.js;h=dab70d9a572dda54c0f0bccafbb07616ef372ce0;hb=refs%2Ftags%2Fv3.5.3;hp=e992d3ad607f29d6f485027f775324b00bbabbc5;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/core/env.js b/_source/core/env.js index e992d3a..dab70d9 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -146,6 +146,16 @@ if ( !CKEDITOR.env ) env.ie8Compat = document.documentMode == 8; /** + * Indicates that CKEditor is running on Internet Explorer 9's standards mode. + * @name CKEDITOR.env.ie9Compat + * @type Boolean + * @example + * if ( CKEDITOR.env.ie9Compat ) + * alert( "IE9, the beauty of the web!" ); + */ + env.ie9Compat = document.documentMode == 9; + + /** * Indicates that CKEditor is running on an IE7-like environment, which * includes IE7 itself and IE8's IE7 document mode. * @name CKEDITOR.env.ie7Compat @@ -241,7 +251,6 @@ if ( !CKEDITOR.env ) env.ie ? 'ie' : env.gecko ? 'gecko' : env.opera ? 'opera' : - env.air ? 'air' : env.webkit ? 'webkit' : 'unknown' ); @@ -262,6 +271,9 @@ if ( !CKEDITOR.env ) if ( env.gecko && version < 10900 ) env.cssClass += ' cke_browser_gecko18'; + if ( env.air ) + env.cssClass += ' cke_browser_air'; + return env; })(); }