Opened 15 years ago

Closed 13 years ago

#2675 closed Bug (duplicate)

Changing background color does not render properly when font sizes differ.

Reported by: Daniel Sarosi Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: FCKeditor 2.4
Keywords: Cc:

Description

Tested in opera and firefox.

If you go to the demo, and change the font size of the first sentence "This is some sample text." to font-size xx-large. Then select all the text and change the background color and you'll notice that the background color behind the large font only covers it by half. The output it the following;

<span style="background-color: rgb(255, 0, 0);">
  <span style="font-size: xx-large;">
    This is some <strong>sample text</strong>.
  </span> 
  You are using 
</span>
<a href="http://www.fckeditor.net/" _fcksavedurl="http://www.fckeditor.net/">
  <span style="background-color: rgb(255, 0, 0);">
   FCKeditor
  </span>
</a>
<span style="background-color: rgb(255, 0, 0);">.</span>

but it should take into account different spans for different font-sizes that should be contained within the font-size span. Thus it should produce the following;

<span style="font-size: xx-large;">
  <span style="background-color: rgb(255, 0, 0);"> 
    This is some <strong>sample text</strong>.
  </span>
</span>
<span style="background-color: rgb(255, 0, 0);">
  You are using 
</span>
<a href="http://www.fckeditor.net/" _fcksavedurl="http://www.fckeditor.net/">
  <span style="background-color: rgb(255, 0, 0);">
   FCKeditor
  </span>
</a>
<span style="background-color: rgb(255, 0, 0);">.</span>

Attachments (1)

Screenshot.png (32.5 KB) - added by Daniel Sarosi 15 years ago.
screenshot

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Daniel Sarosi

Attachment: Screenshot.png added

screenshot

comment:1 Changed 15 years ago by Artur Formella

Keywords: Confirmed added
Version: FCKeditor 2.4

Confirmed in FF3 and Google Chrome

comment:2 Changed 13 years ago by Krzysztof Studnik

Component: GeneralCore : Styles
Resolution: duplicate
Status: confirmedclosed

FCKeditor was retired and is no longer supported. This issue, however, still occurs in its successor, CKEditor 3.x, and you can track its resolution in ticket #8181.

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