Opened 13 years ago

Closed 13 years ago

#7604 closed Bug (duplicate)

style definition overrides does not allow to override elements with the same name

Reported by: Marco Kawollek Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.5.3
Keywords: style definition overrides Cc:

Description

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?

Change History (1)

comment:1 Changed 13 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

Dup of #7492 (and #7498)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy