﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7604	style definition overrides does not allow to override elements with the same name	Marco Kawollek		"while adapting the font-plugin i found, that it is not possible to override an element with the same name:

trying something like this has no effect:

{{{
CKEDITOR.config.font_style =
	{
		element		: 'span',
		styles		: { 'font-family' : '#(family)' },
		overrides	: [ { element : 'span', attributes : { 'class' : 'myClass' } } ]
	};
}}}

there is an if-statement in the style-Plugin, that causes this problem. In 


{{{
function removeFromInsideElement( style, element )
}}}

you will find this:

{{{
if ( overrideElement != style.element )
}}}

Removing this allows to override elements with the same name. I changed this for me an found no sideeffects while testing. 
Would it be possible to change this?


"	Bug	closed	Normal		Core : Styles	3.5.3	duplicate	style definition overrides	
