Ticket #5930: 5930_2.patch
File 5930_2.patch, 898 bytes (added by , 13 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
1 /*1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 251 251 if ( CKEDITOR.env.ie ) 252 252 { 253 253 // IE outputs style attribute in capital letters. We should convert 254 // them back to lower case .254 // them back to lower case, while not hurting the values (#5930) 255 255 defaultHtmlFilterRules.attributes.style = function( value, element ) 256 256 { 257 return value.toLowerCase(); 257 return value.replace( /(^|;)([^\:]+)/g, function( match ) 258 { 259 return match.toLowerCase(); 260 }); 258 261 }; 259 262 } 260 263