Changeset 1920 for FCKeditor/trunk


Ignore:
Timestamp:
04/14/2008 05:43:25 AM (7 years ago)
Author:
martinkou
Message:

Fixed #768 : It is no longer possible for an image to have its width and height defined with both HTML attributes and inline CSS styles in IE.

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r1898 r1920  
    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>
  • FCKeditor/trunk/editor/_source/internals/fckxhtml.js

    r1565 r1920  
    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        },
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy