Opened 4 years ago

Closed 4 years ago

#11971 closed Bug (wontfix)

Underline and strikeout color not maintained during copy paste from word

Reported by: Venkat Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: Cc:

Description

Underline and strikeout color not maintained during copy paste from word

When u copy a word or a line with underline or strikeout.The underline & strike out is always blank irrespective of the font color.

Change History (1)

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

Resolution: wontfix
Status: newclosed
Version: 4.3.3

That's because in HTML there's a difference between:

<s><span style="color:red">foo</span></s>

and:

<span style="color:red"><s>foo</s></span>

In the second case the strike line will inherit color. However, it's totally beyond our capabilities to solve this case, because:

  1. In the following case we would need to deeply modify DOM structure and we don't want to do that:
    <s>foo<span style="color:red">xx</span>bar</s>
    
  1. Color may come from any element - it all depends on stylesheets. So in order to fix the structure we would have to retrieve computed styles which are available only when content is already in the document.

So, this is an HTML nature on which we don't have a control.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy