JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.1
[ckeditor.git] / _source / core / env.js
index 2098527..9b73aea 100644 (file)
@@ -103,7 +103,16 @@ if ( !CKEDITOR.env )
 \r
                                return domain != hostname &&\r
                                        domain != ( '[' + hostname + ']' );     // IPv6 IP support (#5434)\r
-                       }\r
+                       },\r
+\r
+                       /**\r
+                        * Indicates that page is running under an encrypted connection.\r
+                        * @returns {Boolean} "true" if the page has an encrypted connection.\r
+                        * @example\r
+                        * if ( CKEDITOR.env.secure )\r
+                        *     alert( "I'm in SSL!" );\r
+                        */\r
+                       secure : location.protocol == 'https:'\r
                };\r
 \r
                /**\r
@@ -146,6 +155,16 @@ if ( !CKEDITOR.env )
                        env.ie8Compat = document.documentMode == 8;\r
 \r
                        /**\r
+                        * Indicates that CKEditor is running on Internet Explorer 9's standards mode.\r
+                        * @name CKEDITOR.env.ie9Compat\r
+                        * @type Boolean\r
+                        * @example\r
+                        * if ( CKEDITOR.env.ie9Compat )\r
+                        *     alert( "IE9, the beauty of the web!" );\r
+                        */\r
+                       env.ie9Compat = document.documentMode == 9;\r
+\r
+                       /**\r
                         * Indicates that CKEditor is running on an IE7-like environment, which\r
                         * includes IE7 itself and IE8's IE7 document mode.\r
                         * @name CKEDITOR.env.ie7Compat\r