Changeset 6016
- Timestamp:
- 10/27/10 21:11:11 (3 years ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/core/env.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/core/env.js
r5991 r6016 12 12 { 13 13 /** 14 * Environment and browser information. 15 * @namespace 16 * @example 14 * @namespace Environment and browser information. 17 15 */ 18 16 CKEDITOR.env = (function() … … 70 68 mac : ( agent.indexOf( 'macintosh' ) > -1 ), 71 69 70 /** 71 * Indicates that CKEditor is running on a quirks mode environemnt. 72 * @type Boolean 73 * @example 74 * if ( CKEDITOR.env.quirks ) 75 * alert( "Nooooo!" ); 76 */ 72 77 quirks : ( document.compatMode == 'BackCompat' ), 73 78 79 /** 80 * Indicates that CKEditor is running on a mobile like environemnt. 81 * @type Boolean 82 * @example 83 * if ( CKEDITOR.env.mobile ) 84 * alert( "I'm running with CKEditor today!" ); 85 */ 74 86 mobile : ( agent.indexOf( 'mobile' ) > -1 ), 75 87 88 /** 89 * Indicates that the browser has a custom domain enabled. This has 90 * been set with "document.domain". 91 * @returns {Boolean} "true" if a custom domain is enabled. 92 * @example 93 * if ( CKEDITOR.env.isCustomDomain() ) 94 * alert( "I'm in a custom domain!" ); 95 */ 76 96 isCustomDomain : function() 77 97 { … … 106 126 107 127 /** 108 * Indicate IE8 browser. 128 * Indicates that CKEditor is running on Internet Explorer 8. 129 * @name CKEDITOR.env.ie8 130 * @type Boolean 131 * @example 132 * if ( CKEDITOR.env.ie8 ) 133 * alert( "I'm on IE8!" ); 109 134 */ 110 135 env.ie8 = !!document.documentMode; 111 136 112 137 /** 113 * Indicte IE8 document mode. 138 * Indicates that CKEditor is running on Internet Explorer 8 on 139 * standards mode. 140 * @name CKEDITOR.env.ie8Compat 141 * @type Boolean 142 * @example 143 * if ( CKEDITOR.env.ie8Compat ) 144 * alert( "Now I'm on IE8, for real!" ); 114 145 */ 115 146 env.ie8Compat = document.documentMode == 8; … … 118 149 * Indicates that CKEditor is running on an IE7-like environment, which 119 150 * includes IE7 itself and IE8's IE7 document mode. 120 * @type Boolean 151 * @name CKEDITOR.env.ie7Compat 152 * @type Boolean 153 * @example 154 * if ( CKEDITOR.env.ie8Compat ) 155 * alert( "I'm on IE7 or on an IE7 like IE8!" ); 121 156 */ 122 157 env.ie7Compat = ( ( version == 7 && !document.documentMode ) … … 126 161 * Indicates that CKEditor is running on an IE6-like environment, which 127 162 * includes IE6 itself and IE7 and IE8 quirks mode. 163 * @name CKEDITOR.env.ie6Compat 128 164 * @type Boolean 129 165 * @example … … 132 168 */ 133 169 env.ie6Compat = ( version < 7 || env.quirks ); 134 135 170 } 136 171 … … 161 196 162 197 /** 163 * Contains the browser version. 164 * 198 * Contains the browser version.<br /> 199 * <br /> 165 200 * For gecko based browsers (like Firefox) it contains the revision 166 201 * number with first three parts concatenated with a padding zero 167 * (e.g. for revision 1.9.0.2 we have 10900). 168 * 202 * (e.g. for revision 1.9.0.2 we have 10900).<br /> 203 * <br /> 169 204 * For webkit based browser (like Safari and Chrome) it contains the 170 205 * WebKit build version (e.g. 522). … … 194 229 false ); 195 230 196 // The CSS class to be appended on the main UI containers, making it 197 // easy to apply browser specific styles to it. 231 /** 232 * The CSS class to be appended on the main UI containers, making it 233 * easy to apply browser specific styles to it. 234 * @name CKEDITOR.env.cssClass 235 * @type String 236 * @example 237 * myDiv.className = CKEDITOR.env.cssClass; 238 */ 198 239 env.cssClass = 199 240 'cke_browser_' + (
Note: See TracChangeset
for help on using the changeset viewer.
