Ticket #5930: 5930_2.patch

File 5930_2.patch, 898 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    1 /*
     1/*
    22Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
     
    251251        if ( CKEDITOR.env.ie )
    252252        {
    253253                // 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)
    255255                defaultHtmlFilterRules.attributes.style = function( value, element )
    256256                {
    257                         return value.toLowerCase();
     257                        return value.replace( /(^|;)([^\:]+)/g, function( match )
     258                                {
     259                                        return match.toLowerCase();
     260                                });
    258261                };
    259262        }
    260263
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy