﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7492	Overrides of Styles don't work correctly for classes	Alfonso Martínez de Lizarrondo	Alfonso Martínez de Lizarrondo	"Load the XHTML output sample.[br]
Select a word an apply for example the Comic font to it. Now select Times New Roman

Expected results:[br]
A single span that makes the text appear in Times New Roman.

Actual results:[br]
Two nested spans with and the text is shown in Comic.

This is the way that the font styles are defined for that sample:
{{{
font_style :
{
		element		: 'span',
		attributes		: { 'class' : '#(family)' },
		overrides	: [ { element : 'span', attributes : { 'class' : /^Font(?:Comic|Courier|Times)$/ } } ]
},
}}}
As the ""element"" is the same one that it's used in the overrides definition it seems to be cause of the problems.

The patch fixes this problem, but there might be better ways to fix it if it was planned in a different way (and there might be other places to review)"	Bug	closed	Normal	CKEditor 3.6.3	Core : Styles		fixed		
