#2675: Changing background color does not render properly when font sizes
differ.
---------------------+------------------------------------------------------
Reporter: dsarosi | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
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>
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2675>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac