Changeset 4176
- Timestamp:
- 09/01/09 14:18:59 (4 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/core/tools.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r4175 r4176 57 57 <li><a href="http://dev.fckeditor.net/ticket/3370">#3370</a> : Refactored use of CKEDITOR.env.isCustomDomain().</li> 58 58 <li><a href="http://dev.fckeditor.net/ticket/4230">#4230</a> : HC detection caused js error.</li> 59 <li><a href="http://dev.fckeditor.net/ticket/3978">#3978</a> : Fixed setStyle float on IE7 strict.</li> 59 60 </ul> 60 61 <h3> -
CKEditor/trunk/_source/core/tools.js
r3945 r4176 198 198 * alert( CKEDITOR.tools.cssStyleToDomStyle( 'float' ) ); // "cssFloat" 199 199 */ 200 cssStyleToDomStyle : function( cssName ) 201 { 202 if ( cssName == 'float' ) 203 return 'cssFloat'; 204 else 205 { 206 return cssName.replace( /-./g, function( match ) 207 { 208 return match.substr( 1 ).toUpperCase(); 209 }); 210 } 211 }, 200 cssStyleToDomStyle : ( function() 201 { 202 var test = document.createElement( 'div' ).style; 203 204 var cssFloat = ( typeof test.cssFloat != 'undefined' ) ? 'cssFloat' 205 : ( typeof test.styleFloat != 'undefined' ) ? 'styleFloat' 206 : 'float'; 207 208 return function( cssName ) 209 { 210 if ( cssName == 'float' ) 211 return cssFloat; 212 else 213 { 214 return cssName.replace( /-./g, function( match ) 215 { 216 return match.substr( 1 ).toUpperCase(); 217 }); 218 } 219 }; 220 } )(), 212 221 213 222 /**
Note: See TracChangeset
for help on using the changeset viewer.
