Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#4894 closed Bug (wontfix)

Paste: problems with custom styles

Reported by: Damian Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: IBM Cc: Joe Kavanagh


When copying text with custom styles applied, all styles are ignored in all browsers except IE.

In IE, only paragraph alignment is lost, all other styles are preserved.

See attached test document.

Attachments (1)

CustomStyleTest.doc (19.5 KB) - added by Damian 15 years ago.
Contains custom style called "CKEditorTestStyle"

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Damian

Attachment: CustomStyleTest.doc added

Contains custom style called "CKEditorTestStyle"

comment:1 Changed 15 years ago by Garry Yao

Milestone: CKEditor 3.1
Resolution: wontfix
Status: newclosed
  1. For FF, it should work with a styles preservation config:
    	config.pasteFromWordRemoveStyles = false;
    	config.pasteFromWordRemoveFontStyles = false;
  2. For IE and Webkit, our content sniffing is not working, which means we have no idea it's come from MS-Word, so no cleanup process at all.
    IE clipboard:
    <P style="MARGIN: 0cm 0cm 0pt" class=CKEditorTestStyle><SPAN lang=EN-US><STRONG><EM><U><FONT color=#99cc00 size=7 face="Comic Sans MS">This is a test using CKEditorTestStyle custom style!</FONT></U></EM></STRONG></SPAN></P>
    Webkit clipboard:
    <h1><p class="CKEditorTestStyle"><span lang="EN-US">This is a test using
    CKEditorTestStyle custom style!</span></p></h1>

We're not going to fix this specific case.

comment:2 Changed 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
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