X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fenv.js;h=9b73aead51359d973f06cae75bf90a36e02097f8;hb=f0610347140239143439a511ee2bd48cb784f470;hp=20985278f01fa0ea9a6f2a7ce39e8da0f869f076;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/core/env.js b/_source/core/env.js index 2098527..9b73aea 100644 --- a/_source/core/env.js +++ b/_source/core/env.js @@ -103,7 +103,16 @@ if ( !CKEDITOR.env ) return domain != hostname && domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434) - } + }, + + /** + * Indicates that page is running under an encrypted connection. + * @returns {Boolean} "true" if the page has an encrypted connection. + * @example + * if ( CKEDITOR.env.secure ) + * alert( "I'm in SSL!" ); + */ + secure : location.protocol == 'https:' }; /** @@ -146,6 +155,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