Ticket #1503: 1503.patch
File 1503.patch, 1.3 KB (added by , 17 years ago) |
---|
-
fckstyle.js
231 231 // Remove overrides defined to the same element name. 232 232 this._RemoveOverrides( pathElement, styleOverrides[ pathElementName ] ) ; 233 233 234 // Remove the element if no more attributes are available. 235 this._RemoveNoAttribElement( pathElement ) ; 234 // Remove the element if no more attributes are available and it's an inline style element 235 if ( this.GetType() == FCK_STYLE_INLINE) 236 this._RemoveNoAttribElement( pathElement ) ; 236 237 } 237 238 } 238 239 else if ( isBoundary ) … … 486 487 switch ( this.GetType() ) 487 488 { 488 489 case FCK_STYLE_BLOCK : 489 return this.CheckElementRemovable( elementPath.Block || elementPath.BlockLimit ) ;490 return this.CheckElementRemovable( elementPath.Block || elementPath.BlockLimit, true ) ; 490 491 491 492 case FCK_STYLE_INLINE : 492 493 … … 688 689 valueB = valueB.replace( /;$/, '' ).toLowerCase() ; 689 690 } 690 691 691 return ( valueA == valueB ) 692 // Return true if they match or if valueA is null and valueB is an empty string 693 return ( valueA == valueB || ( valueA === null && valueB === '') ) 692 694 }, 693 695 694 696 GetFinalAttributeValue : function( attName )