Opened 10 years ago

Closed 10 years ago

#11529 closed Bug (duplicate)

OpenOffice paste table loses background color

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

Description

Copy/Pasting a table from OpenOffice using the Paste from Word plugin loses the table background color.

Steps to reproduce:

  • Open the attached document with OpenOffice (tested on MacOS X, OpenOffice 4.0.0).
  • Copy the table
  • Paste the table on CKEditor using the Paste from Word plugin on an editor configured with pasteFromWordRemoveFontStyles and pasteFromWordRemoveStyles set to false.

Expected:

The table to be pasted maintaining the font styles and table format.

Result:

The font styles are preserved, but the table cells have no background color.

The copied data from OO differs from the one from Word in that it uses inline bgcolor instead of styling via background such as:

<td bgcolor="#ff00ff">

Could this be added to the allowedContent by default, or should it be added on a per-case basis using the extraAllowedContent property?

Attachments (1)

Table_OO.docx (14.0 KB) - added by Chema 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Chema

Attachment: Table_OO.docx added

comment:1 Changed 10 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0

Perhaps this can be treated as part of #8761.

  1. What you are showing us is Open Office file saved as docx. In that case there is style="background:#DFD8E8;" used.
  2. In original odt file there is bgcolor="#dfd8eb" used.

Both of these are not checked in paste from word filter thus background colour is always ignored.

comment:2 Changed 10 years ago by Chema

Resolution: duplicate
Status: confirmedclosed

Hey @j.swiderski, thanks for checking that out. I agree this should be part of #8761. I tried a search but didn't find it. Sorry about that.

Closing as duplicated.

Thanks!

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