id summary reporter owner description type status priority milestone component version resolution keywords cc 14880 One style with a class + another with two classes which one is used be the first style, then both are selected in style combo menu. masterdjon "== Steps to reproduce == 1. Create two styles that both applies to the same elements (well in fact, it seems the problem maybe only related to the ""image2"" plugin. I can say so, because I have the same stuff for ""table"" element) 2. One with one class. In example : fullWidth 3. Second with two classes which one is the same as the first style. 4. In the editor, add an image element that you set the style ""Styles_Base_FullWidthWithoutLeftMargin"" == Styles.js Example == {{{ { name: $l('Styles_Base_FullWidthWithMargin'), type: 'widget', widget: 'image', attributes: { 'class' : 'fullWidth' } }, { name: $l('Styles_Base_FullWidthWithoutLeftMargin'), type: 'widget', widget: 'image', attributes: { 'class' : 'fullWidth outSectionBodyLeft' } } }}} == HTML example == {{{

}}} == Expected result == Reopening the style combo show only the second style selected, not the first. == Actual result == Reopening the style combo show both styles selected. == Fix == This could resolved by looking at the classes in the combo that search via a regex which is set to full word. I didn't look the code, but as I saw in other issues, it seems that the editor splits the classes using a space to find the correlated style. == Other details (browser, OS, CKEditor version, installed plugins) == Not relevant except for the image2 plugin installed. Though, just saying the ""$l"" function is just a translating function of my own." Bug confirmed Normal Core : Styles