Opened 11 years ago

Closed 11 years ago

#12117 closed Bug (wontfix)

Defect - The formats is losted when copy from word(Office 2010)

Reported by: Eleanor Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version:
Keywords: Cc:

Description

My copied value from word(Office 2010)with Align/Indent format, After paste to CK Editor, all Align/ Indent formats are lost. Please check attachement to get my testing source word file

Testing result:

  1. All Align format has been lost
  2. All Indent format has been lost
  3. Text highlighter color can’t cover the whole character when the fount is big( source data fount = 20 in word)
  4. The header string becomes to link style
  5. Page background has been lost

Attachments (2)

Eleanor testing.docx (25.8 KB) - added by Eleanor 11 years ago.
Word data source
Copy from word screenshot.docx (109.4 KB) - added by Eleanor 11 years ago.
The screenshot for copy from word result

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Eleanor

Attachment: Eleanor testing.docx added

Word data source

Changed 11 years ago by Eleanor

The screenshot for copy from word result

comment:1 Changed 11 years ago by Jakub Ś

Best "paste from word" results can be achieved with below settings:

var editor = CKEDITOR.replace( 'editor1', {	
	allowedContent : true,	
	pasteFromWordRemoveFontStyles : false,
	pasteFromWordRemoveStyles : false
});

CKEditor gets data processed by browser. First browser gets to HTML then CKEditor receives it.
The above configuration should help, at least with Indent and Alignment, but this is the HTML that browser sees and editor gets.
Header has lots of anchors in front, Page background is not known, alignment and indentation looks all the same.
In fact the only thing that might be fixed here by editor is styles marging ( which would solve point 3 ) but this will be fixed in CKEditor 5 at the earliest.

I'm closing this issue as won't fix because there is nothing CKEditor can do here.

comment:2 Changed 11 years ago by Jakub Ś

Resolution: wontfix
Status: newclosed
Version: 4.4.1
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