Opened 4 years ago

Last modified 4 years ago

#13666 confirmed Bug

buggy copy + paste

Reported by: b Hubner Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Cc:

Description

Steps to reproduce

  1. pasting only the following text from Word 2013 it breaks after 'Hasenhe' or the whole text attached:

Johanniskirche: 10.30 GD (H. Feußner); Michaelis-Kapelle Hasenhecke: 9.00 GD (H. Feußner)

Klinikseelsorge Diakonissen-Krankenhaus: Raum der Stille: Mo.- Fr. 9.-9.15 "Lichtblick am Morgen", Mo.- Sa. 18.-18.15 "Abendstille zur guten Nacht";

Expected result

Johanniskirche: 10.30 GD (H. Feußner); Michaelis-Kapelle Hasenhecke: 9.00 GD (H. Feußner)

Klinikseelsorge Diakonissen-Krankenhaus: Raum der Stille: Mo.- Fr. 9.-9.15 "Lichtblick am Morgen", Mo.- Sa. 18.-18.15 "Abendstille zur guten Nacht";

Actual result

Johanniskirche: 10.30 GD (H. Feußner);

Michaelis-Kapelle Hasenhe, Mo.- Sa. 18.-18.15 "Abendstille zur guten Nacht";

Other details (browser, OS, CKEditor version, installed plugins)

Attachments (1)

2015-08-16_buggy_text.docx (34.7 KB) - added by b Hubner 4 years ago.
critical text in yellow

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by b Hubner

Attachment: 2015-08-16_buggy_text.docx added

critical text in yellow

comment:2 Changed 4 years ago by b Hubner

The problem is that this textline: Michaelis-Kapelle Hasenhecke: 9.00 GD (H. Feußner)

will be this:

Michaelis-Kapelle Hasenhe

the last part is missing in the editor. It continues with the next para. The original text is within the attachment.

comment:3 Changed 4 years ago by Jakub Ś

I was checking this issue with pasteFromWordXYZ options disabled. I have decided to delete previous comments to avoid mess.

I will have this issue checked again.

@barbara_hu as a workaround you may add these two options to editor configuration:

pasteFromWordRemoveFontStyles : false, 
pasteFromWordRemoveStyles : false 
Last edited 4 years ago by Jakub Ś (previous) (diff)

comment:4 Changed 4 years ago by Jakub Ś

Keywords: copy error removed
Status: newconfirmed
Version: 4.4.43.1

Problem can be reproduced from CKEditor 3.1 in all browsers.

HTML that gets to CKEditor:

<p class="MsoNormal"><b><span style="background:yellow;mso-highlight:
yellow" lang="DE">Johanniskirche: </span></b><span style="background:yellow;
mso-highlight:yellow" lang="DE">10.30 GD (H. Feußner);</span></p>

<p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="background:yellow;mso-highlight:yellow" lang="DE">Michaelis-

Kapelle Hasenhecke:</span></b><span style="background:yellow;mso-highlight:yellow" lang="DE"> 9.00 GD (H. Feußner)</span></p>

<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow" lang="DE">&nbsp;</span></p>

<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow" lang="DE">&nbsp;</span></p>

<p class="MsoHeading7" style="tab-stops:84.95pt 96.3pt"><span style="background:yellow;mso-highlight:yellow" 

lang="DE">Klinikseelsorge</span></p>

<p class="MsoBodyText3" style="tab-stops:84.95pt 96.3pt"><span style="background:yellow;mso-highlight:yellow" lang="DE">Diakonissen-

Krankenhaus: </span><span style="background:yellow;mso-highlight:yellow;font-weight:normal" lang="DE">Raum
der Stille: Mo.- Fr. 9.-9.15 "Lichtblick am Morgen", Mo.- Sa.
18.-18.15 "Abendstille zur guten Nacht";</span><span style="font-weight:normal" lang="DE"></span></p>

The HTML that gets removed from editor on paste:

<p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="background:yellow;mso-highlight:yellow" lang="DE">Michaelis-

Kapelle Hasenhecke:</span></b><span style="background:yellow;mso-highlight:yellow" lang="DE"> 9.00 GD (H. Feußner)</span></p>

<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow" lang="DE">&nbsp;</span></p>

<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow" lang="DE">&nbsp;</span></p>

<p class="MsoHeading7" style="tab-stops:84.95pt 96.3pt"><span style="background:yellow;mso-highlight:yellow" 

lang="DE">Klinikseelsorge</span></p>

It looks like word filter removes that text. Now, this behaviour can be avoided with these two options turned to false: pasteFromWordRemoveFontStyles : false, pasteFromWordRemoveStyles : false but word filter should definitely not be removing non-empty HTML nodes.
The only two styles that are different in these two non-empty nodes are mso-bidi-font-weight:normal and tab-stops:84.95pt 96.3pt. I'm not sure if they are responsible for that behaviour bot this is something to check.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy