Opened 10 years ago

Closed 10 years ago

#11184 closed Bug (wontfix)

Underline does not reflect text color

Reported by: Nolege Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version:
Keywords: Cc:

Description

Similar to ticket 1646.

If you select a portion of text and choose a color. Then use the underline tool the resulting html wraps the span with the color style with the underline. This order needs to be reversed so the underline color matches the text.

CK HTML

<em><span style="color:red">Here is color and underline</span></em>

Expected html result

<span style="color:red"><em>Here is color and underline</em></span>

Change History (1)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Keywords: underline style color tag order removed
Resolution: wontfix
Status: newclosed
Version: 4.3

But what in case of HTML like this?

<u><span class="red">Foo</span></u>
...
.red { color: red }

Or even worse:

<u><s>Foo</s></u>
...
u { color: red }
s { color: blue }

We cannot anticipate every possible combination. CKEditor is not a fully custom word processor. It bases on HTML, so it inherited some behaviours. This one could be "fixed", but it would be huge ugly hack. Therefore we're not interested in changing this.

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