Ticket #8437 (closed Bug: duplicate)

Opened 3 years ago

Last modified 3 months ago

background of text run pasted from Word

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

Description

Situation: Pasting text from Word into CKEditor

Problem: Background property of the text is set wrong

Here is document source:

<p>
    <strong>
        <span style="background:lime;">
            <span style="color:white;">
                <span style="font-size:36.0pt;">WORD</span>
            </span>
        </span>
    </strong>
    <strong>
        <span style="font-size:36.0pt;">
            <span style="background:teal;">
                <span style="color:white;">ABC</span>
            </span>
        </span>
    </strong>
</p>

CKEditor for some reason inverted hiearchy of <span> elements of the first word. In "word paste dialog" text is displayed correctly.

Attachments

TextInWord.png (47.8 KB) - added by Zee 3 years ago.
Text in Microsoft Word
TextInDialog.png (14.9 KB) - added by Zee 3 years ago.
Text in Paste from Word dialog
TextInEditor.png (6.7 KB) - added by Zee 3 years ago.
Text in editor
WORD_ABC.doc (23.5 KB) - added by j.swiderski 2 years ago.

Change History

Changed 3 years ago by Zee

Text in Microsoft Word

Changed 3 years ago by Zee

Text in Paste from Word dialog

Changed 3 years ago by Zee

Text in editor

comment:1 Changed 3 years ago by fredck

  • Status changed from new to confirmed
  • Keywords Background Paste removed
  • Component changed from General to Core : Pasting

comment:2 Changed 3 years ago by j.swiderski

@Zee you think it would be possible to attach doc file you have used for this ticked?

Changed 2 years ago by j.swiderski

comment:3 Changed 2 years ago by j.swiderski

  • Status changed from confirmed to closed
  • Resolution set to duplicate

I attaching sample file that shows result very similar to the one that user has reported.

Anyway this is a duplicate of #8181.

If CKEditor could wisely switch spans from

<span style="background:lime;">
       <span style="color:white;">
           <span style="font-size:36.0pt;">WORD</span>
       </span>
</span>

to (size around background color)

<span style="font-size:36.0pt;">
    <span style="background:teal;">
         <span style="color:white;">ABC</span>
</span>

Problem would be solved.

comment:4 Changed 3 months ago by fredck

  • Component changed from Core : Pasting to Plugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy