Opened 9 years ago

Closed 9 years ago

#13277 closed Bug (invalid)

Copy table with "Repeat as header row at the top of each page" option enabled in Word didn't paste correctly in CKEditor

Reported by: Kinny Owned by:
Priority: Normal Milestone:
Component: Core : Tables Version: 4.4.5
Keywords: IBM Cc: bsilverm@…

Description

Copy table with "Repeat as header row at the top of each page" option enabled in Word didn't paste correctly in CKEditor.

Tested on CKEditor dashboard page http://ckeditor.swg.usma.ibm.com/

Steps to reproduce:

  1. From Word, create a 2x2 table and enter some text. See attached screen capture (Table_in_Word.png) for example.
  2. Select the table, then select Table Properties
  3. In the Row tab, check option "Repeat as header row at the top of each page" and OK
  4. Copy the selected table from Word and paste into the CKEditor

All cells in the pasted table in CKEditor are header cells, see Pasted_table.png. And the table properties "Headers" field is set to "Both" and I'm not able to change it. Change didn't take affect after OK.

The expected result is only the first row as header and rest are standard cells.

Attachments (3)

Table_in_Word.png (17.0 KB) - added by Kinny 9 years ago.
Pasted_table.png (23.6 KB) - added by Kinny 9 years ago.
sample.doc (26.5 KB) - added by Kinny 9 years ago.
This doc contains the table I tested with

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Kinny

Attachment: Table_in_Word.png added

Changed 9 years ago by Kinny

Attachment: Pasted_table.png added

comment:1 Changed 9 years ago by Ben

Cc: bsilverm@… added

comment:2 Changed 9 years ago by Kinny

Attached the Word document I used and I'm using MSWord 2013.

I also test the issue in CKEditor demo http://ckeditor.com/demo#full and I'm able to reproduce the problem.

Changed 9 years ago by Kinny

Attachment: sample.doc added

This doc contains the table I tested with

comment:3 Changed 9 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I'm afraid there is no error in CKEditor and there is nothing we can do in this case. I have checked how browser sees such table pasted from Word directly.

<table style="border: currentColor; border-image: none; border-collapse: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext;" border="1" cellspacing="0" cellpadding="0">
 <thead>
  <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;">
   <td width="319" valign="top" style="padding: 0cm 5.4pt; border: 1pt solid windowtext; border-image: none; width: 239.4pt; background-color: transparent; mso-border-alt: solid windowtext .5pt;">
   <p style="margin: 0cm 0cm 8pt;"><span lang="EN-US"><font face="Calibri">One</font></span></p>
   </td>
   <td width="319" valign="top" style="border-width: 1pt 1pt 1pt 0px; border-style: solid solid solid none; border-color: windowtext windowtext windowtext rgb(0, 0, 0); padding: 0cm 5.4pt; border-image: none; width: 239.4pt; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;">
   <p style="margin: 0cm 0cm 8pt;"><span lang="EN-US"><font face="Calibri">Two</font></span></p>
   </td>
  </tr>
  <tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;">
   <td width="319" valign="top" style="border-width: 0px 1pt 1pt; border-style: none solid solid; border-color: rgb(0, 0, 0) windowtext windowtext; padding: 0cm 5.4pt; border-image: none; width: 239.4pt; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;">
   <p style="margin: 0cm 0cm 8pt;"><span lang="EN-US"><font face="Calibri">Three</font></span></p>
   </td>
   <td width="319" valign="top" style="border-width: 0px 1pt 1pt 0px; border-style: none solid solid none; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); padding: 0cm 5.4pt; width: 239.4pt; background-color: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;">
   <p style="margin: 0cm 0cm 8pt;"><span lang="EN-US"><font face="Calibri">Four</font></span></p>
   </td>
  </tr>
 </thead>
</table>

As you can see there is no body in this table only header. Browser sees this table as table with headings only and CKEditor just works with what it had received.

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