Ticket #7492: 7492.patch

File 7492.patch, 1003 bytes (added by Alfonso Martínez de Lizarrondo, 13 years ago)

Proposed patch

  • _source/plugins/styles/plugin.js

     
    11151115        function removeFromElement( style, element )
    11161116        {
    11171117                var def = style._.definition,
    1118                         attributes = CKEDITOR.tools.extend( {}, def.attributes, getOverrides( style )[ element.getName() ] ),
     1118                        attributes = def.attributes,
    11191119                        styles = def.styles,
     1120                        overrides = getOverrides( style )[ element.getName() ],
    11201121                        // If the style is only about the element itself, we have to remove the element.
    11211122                        removeEmpty = CKEDITOR.tools.isEmpty( attributes ) && CKEDITOR.tools.isEmpty( styles );
    11221123
     
    11421143                        element.removeStyle( styleName );
    11431144                }
    11441145
     1146                removeOverrides( element, overrides ) ;
     1147
    11451148                if ( removeEmpty )
    11461149                {
    11471150                        !CKEDITOR.dtd.$block[ element.getName() ] || style._.enterMode == CKEDITOR.ENTER_BR && !element.hasAttributes() ?
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy