Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#10364 closed Bug (duplicate)

Paste from word doesn't do background color

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

Description

Pasting content with a highlight/background color from word. The background color doesn't get copied over.

In default.js I found this line that's responsible for background color:

[ /background-color$/, null, !o ? m(d.colorButton_backStyle, "color") : null]

But when looking at what's being pasted, the highlight is actually specified as "background: somecolor".

By adding the following to the code I seem to have fixed the issue:

[ /background$/, null, !o ? m(d.colorButton_backStyle, "color") : null],

Change History (2)

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

Resolution: duplicate
Status: newclosed

Already mentioned case in http://dev.ckeditor.com/ticket/9991#comment:8

That ticket groups all these requirements for new paste from word filter, so I'm closing this one.

comment:2 Changed 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
Keywords: Word background color removed
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