Opened 18 years ago
Closed 18 years ago
#644 closed Bug (fixed)
[SS] Style not overwritten
Reported by: | 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 18 years ago by
Cc: | Frederico Caldeira Knabben added |
---|---|
Reporter: | changed from Martin Kou to aloetscher@… |
comment:2 Changed 18 years ago by
Cc: | Frederico Caldeira Knabben removed |
---|---|
Component: | General → Core : Styles |
Milestone: | → FCKeditor 2.5 |
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.

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