Ticket #4906: 4906.patch
File 4906.patch, 859 bytes (added by , 14 years ago) |
---|
-
_source/plugins/pastefromword/filter/default.js
257 257 258 258 return function( cssLength ) 259 259 { 260 if( cssLength .indexOf( '%' ) == -1)260 if( cssLengthRelativeUnit.test( cssLength ) ) 261 261 { 262 262 calculator.setStyle( 'width', cssLength ); 263 263 return calculator.$.clientWidth + 'px'; … … 626 626 && attrs.style ) 627 627 { 628 628 attrs.style = stylesFilter( 629 [ [ ( /^ width|height$/ ), null, convertToPx ] ] )( attrs.style ) || '';629 [ [ ( /^(:?width|height)$/ ), null, convertToPx ] ] )( attrs.style ) || ''; 630 630 } 631 631 632 632 // Processing headings.