Ticket #7492: 7492.patch
File 7492.patch, 1003 bytes (added by , 13 years ago) |
---|
-
_source/plugins/styles/plugin.js
1115 1115 function removeFromElement( style, element ) 1116 1116 { 1117 1117 var def = style._.definition, 1118 attributes = CKEDITOR.tools.extend( {}, def.attributes, getOverrides( style )[ element.getName() ] ),1118 attributes = def.attributes, 1119 1119 styles = def.styles, 1120 overrides = getOverrides( style )[ element.getName() ], 1120 1121 // If the style is only about the element itself, we have to remove the element. 1121 1122 removeEmpty = CKEDITOR.tools.isEmpty( attributes ) && CKEDITOR.tools.isEmpty( styles ); 1122 1123 … … 1142 1143 element.removeStyle( styleName ); 1143 1144 } 1144 1145 1146 removeOverrides( element, overrides ) ; 1147 1145 1148 if ( removeEmpty ) 1146 1149 { 1147 1150 !CKEDITOR.dtd.$block[ element.getName() ] || style._.enterMode == CKEDITOR.ENTER_BR && !element.hasAttributes() ?