Ticket #768: 768.patch

File 768.patch, 1.1 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    4141        </ul>
    4242        <p>
    4343                Fixed Bugs:</p>
     44                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/768">#768</a>] It is no longer possible
     45                        for an image to have its width and height defined with both HTML attributes and inline CSS
     46                        styles in IE.</li>
    4447        <ul>
    4548                <li></li>
    4649        </ul>
  • editor/_source/internals/fckxhtml.js

     
    400400                if ( sSavedUrl != null )
    401401                        FCKXHtml._AppendAttribute( node, 'src', sSavedUrl ) ;
    402402
     403                // Bug #768 : If the width and height are defined inline CSS,
     404                // don't define it again in the HTML attributes.
     405                if ( htmlNode.style.width )
     406                        node.removeAttribute( 'width' ) ;
     407                if ( htmlNode.style.height )
     408                        node.removeAttribute( 'height' ) ;
     409
    403410                return node ;
    404411        },
    405412
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy