JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.1
[ckeditor.git] / _source / core / env.js
index dab70d9..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