Ticket #4906: 4906.patch

File 4906.patch, 859 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/pastefromword/filter/default.js

     
    257257
    258258                                return function( cssLength )
    259259                                {
    260                                         if( cssLength.indexOf( '%' ) == -1 )
     260                                        if( cssLengthRelativeUnit.test( cssLength ) )
    261261                                        {
    262262                                                calculator.setStyle( 'width', cssLength );
    263263                                                return calculator.$.clientWidth + 'px';
     
    626626                                                        && attrs.style )
    627627                                                {
    628628                                                        attrs.style = stylesFilter(
    629                                                                                 [ [ ( /^width|height$/ ), null, convertToPx ] ] )( attrs.style ) || '';
     629                                                                                [ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || '';
    630630                                                }
    631631
    632632                                                // Processing headings.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy