Opened 17 years ago

Closed 17 years ago

#644 closed Bug (fixed)

[SS] Style not overwritten

Reported by: aloetscher@… Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: Core : Styles Version:
Keywords: SF Cc:

Description

For the tag "span", I have defined to styles, one for font-size 12px and one for font-size 14px. The definition in the fckstyles.xml is the following:

<Style name="Size: 12 px" element="span">
<Attribute name="style" value="font-size:12px" />
</Style>
<Style name="Size: 14 px" element="span">
<Attribute name="style" value="font-size:14px" />
</Style>

When I try to first attach style "Size: 14px" and then style "Size: 12 px", the first style won't be deleted. The behaviour of Mozilla Firefox and Internet Explorer is also different. Here's the output:

Internet Explorer:

<p>test <span style="FONT-SIZE: 14px"><span
style="FONT-SIZE: 12px"><span style="FONT-SIZE:
14px">of</span></span></span> style</p>

Mozilla Firefox:

test <span style="font-size: 16px;"><span
style="font-size: 12px;">of</span></span> style<br/>

In Mozilla Firefox, when I try to attach the style "Size: 12px" a second time, the whole content of the span tag is deleted.


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1077540&group_id=75348&atid=543653

Change History (3)

comment:1 Changed 17 years ago by Martin Kou

Cc: Frederico Caldeira Knabben added
Reporter: changed from Martin Kou to aloetscher@…

I'm marking this bug to [SS] (Style Selector) as we will be working on it for the 2.5.


Moved from SF. Original poster: fredck

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Cc: Frederico Caldeira Knabben removed
Component: GeneralCore : Styles
Milestone: FCKeditor 2.5

comment:3 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed

Fixed with [774].

Click here for more info about our SVN system.

The provided testcase is ok now. There is still on issue with it in another cases. Ticket #1206 has been opened for it.

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