Opened 10 years ago
Closed 10 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:
- From Word, create a 2x2 table and enter some text. See attached screen capture (Table_in_Word.png) for example.
- Select the table, then select Table Properties
- In the Row tab, check option "Repeat as header row at the top of each page" and OK
- 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)
Change History (6)
Changed 10 years ago by
Attachment: | Table_in_Word.png added |
---|
Changed 10 years ago by
Attachment: | Pasted_table.png added |
---|
comment:1 Changed 10 years ago by
Cc: | bsilverm@… added |
---|
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
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.