Opened 14 years ago

Last modified 8 years ago

#7484 confirmed Bug

Indented text copied from Word is not displaying properly when pasted into the editor

Reported by: James Cunningham Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.5.1
Keywords: IBM Cc: Damian, Teresa Monahan, Satya Minnekanti

Description

Steps to reproduce the defect:

Scenario 1

  1. Open the Ajax sample.
  1. Copy the indented text from the sample doc IndentedParagraphs1.doc
  1. Paste the content into the editor.

Result: The indented paragraphs seem to display fine (see screenshot).

Note: The indentations in IndentedParagraph1.doc are made by typing a line of text. Then press Enter & TAB. Type another line of text. Then press Enter & TAB twice. Then type another line of text.

Scenario 2

  1. Open the Ajax sample.
  1. Copy the indented text from the sample doc IndentedParagraphs2.doc
  1. Paste the content into the editor.

Result: The last 2 paragraphs are not indented as they should be (see screenshot).

Note: The indentations in IndentedParagraph2.doc are made by typing 3 lines of text. Place the cursor at the start of the 2nd paragraph & press TAB once. Then place the cursor at the start of the 3rd paragraph & press TAB twice.

Word has different mark-up depending on how each indentation is created.

Reproducible in IE7, IE8 & FF 3.6.15

Attachments (12)

IndentedParagraphs1.doc (20.5 KB) - added by James Cunningham 14 years ago.
IndentedParagraph1.PNG (22.0 KB) - added by James Cunningham 14 years ago.
IndentedParagraphs2.doc (19.5 KB) - added by James Cunningham 14 years ago.
IndentedParagraph2.PNG (22.0 KB) - added by James Cunningham 14 years ago.
7484_scenario2_chrome_office2010std.txt (273 bytes) - added by Wiktor Walc 10 years ago.
7484_scenario2_firefox_office2010std.txt (17.9 KB) - added by Wiktor Walc 10 years ago.
7484_scenario2_ie8_office2010std.txt (461 bytes) - added by Wiktor Walc 10 years ago.
7484_scenario2_ie11_office2010std.txt (687 bytes) - added by Wiktor Walc 10 years ago.
7484_scenario1_ie8_rawdata_office2010std.txt (825 bytes) - added by Wiktor Walc 10 years ago.
7484_scenario1_ie11_rawdata_office2010std.txt (1.2 KB) - added by Wiktor Walc 10 years ago.
7484_scenario1_firefox_rawdata_office2010std.txt (18.2 KB) - added by Wiktor Walc 10 years ago.
7484_scenario1_chrome_rawdata_office2010std.txt (473 bytes) - added by Wiktor Walc 10 years ago.

Download all attachments as: .zip

Change History (22)

Changed 14 years ago by James Cunningham

Attachment: IndentedParagraphs1.doc added

Changed 14 years ago by James Cunningham

Attachment: IndentedParagraph1.PNG added

Changed 14 years ago by James Cunningham

Attachment: IndentedParagraphs2.doc added

Changed 14 years ago by James Cunningham

Attachment: IndentedParagraph2.PNG added

comment:1 Changed 14 years ago by Garry Yao

Status: newconfirmed
Version: 3.5.3 (SVN - trunk)3.5.1

comment:2 Changed 11 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word

comment:3 Changed 11 years ago by Naresh Kallamadi

Hello jamescun,

I have also same problem with the same versions

Is there any way to fix it.

Thanks

comment:4 Changed 10 years ago by Wiktor Walc

Confirmed on IE8. Make sure to turn off ACF so that it did not affect the results of PFW processing.

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

comment:5 Changed 10 years ago by Wiktor Walc

Scenario 1, result after pasting in IE8 (from Office 2010), with ACF enabled:

<p>test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;</p>

Scenario 1, result after pasting in IE11 (from Office 2010), with ACF enabled:

<p>test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;</p>

Scenario 1, result after pasting in Chrome 39 (from Office 2010), with ACF enabled:

<p>test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;</p>

Scenario 1, result after pasting in Firefox 34 (from Office 2010), with ACF enabled:

<p>test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; test</p>

<p>&nbsp;</p>

Scenario 2, result after pasting in IE8 (from Office 2010), with ACF enabled:

<p>test</p>

<p>test</p>

<p>test</p>

Scenario 2, result after pasting in IE11 (from Office 2010), with ACF enabled:

<p>test</p>

<p>test</p>

<p>test</p>

Scenario 2, result after pasting in Chrome 39 (from Office 2010), with ACF enabled:

<p>test</p>

<p>test</p>

<p style="margin-left:.5in">test</p>

Scenario 2, result after pasting in Firefox 34 (from Office 2010), with ACF enabled:

<p>test</p>

<p>test</p>

<p style="margin-left:.5in">test</p>
Last edited 10 years ago by Piotrek Koszuliński (previous) (diff)

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

comment:6 Changed 10 years ago by Wiktor Walc

With ACF disabled and

       config.pasteFromWordRemoveStyles = false;
       config.pasteFromWordRemoveFontStyles = false;

the results are fine in Chrome and Firefox:

<p>test</p>

<p style="text-indent:.5in;">test</p>

<p style="margin-left:.5in;text-indent:.5in;">test</p>

Same in IE11:

<p style="margin: 0in 0in 0pt;"><span lang="EN-GB"><font color="#000000" face="Times New Roman" size="3">test</font></span></p>

<p style="margin: 0in 0in 0pt; text-indent: 0.5in;"><span lang="EN-GB"><font color="#000000" face="Times New Roman" size="3">test</font></span></p>

<p style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in;"><span lang="EN-GB"><font color="#000000" face="Times New Roman" size="3">test</font></span></p>

comment:7 Changed 10 years ago by Wiktor Walc

Result in IE8 for the same setup:

<p><span style="font-size: medium">test</span></p>

<p style="text-indent: 0.5in"><span style="font-size: medium">test</span></p>

<p style="text-indent: 0.5in"><span style="font-size: medium">test</span></p>

So this is the only setup where pasting fails. Did not check IE9 and IE10.

Last edited 10 years ago by Wiktor Walc (previous) (diff)

comment:8 Changed 9 years ago by Anna Tomanek

Summary: Indented text copied from word is not displaying properly when pasted into the editor. (depends on the Word mark-up)Indented text copied from Word is not displaying properly when pasted into the editor

comment:9 Changed 8 years ago by Tade0

Milestone: CKEditor 4.6.0

Reproducible in IE8, Chrome 54.

There's a large chance the content looks like that even before processing.

comment:10 Changed 8 years ago by Marek Lewandowski

Milestone: CKEditor 4.6.0

We're unable to put any more PFW related tickets in 4.6.0. We'll revisit it later.

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