Ticket #5455: 5455_3.patch

File 5455_3.patch, 864 bytes (added by brooks, 14 years ago)
  • _source/core/dom/element.js

     
    850850                        :
    851851                                function()
    852852                                {
    853                                         var attributes = this.$.attributes;
    854                                         return ( attributes.length > 1 || ( attributes.length == 1 && attributes[0].nodeName != '_cke_expando' ) );
     853                                        var attributes = this.$.attributes,
     854                                                len = attributes.length,
     855                                                nodeName = ( len == 1) && attributes[0].nodeName,
     856                                                excludeProps = { '_cke_expando' : 1, '_moz_dirty' : 1};
     857
     858                                        // [FireFox] when copy a elment(span,strong,em...) and paste it,
     859                                        // the pasted element will be added a *_moz_dirty* property automatic(#5455)
     860                                        return ( len > 1 ) || ( nodeName && !excludeProps[ nodeName ] );
    855861                                },
    856862
    857863                /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy