Opened 12 years ago

Closed 12 years ago

#8562 closed Bug (duplicate)

Table: Insert Column Before and Insert Column After not working when a column contains some 'undefined' cells

Reported by: Teresa Monahan Owned by:
Priority: Normal Milestone:
Component: General Version: 3.5.1
Keywords: IBM Cc: Damian, Satya Minnekanti


Steps to Reproduce:

  1. Open any CKEditor sample and paste the following into source view:
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <tbody> <tr> <td> 1.1</td> <td> 1.2</td> </tr> <tr> <td> 2.1</td> <td> 2.2</td> </tr> <tr> <td> 3.1</td> <td> 3.2</td> </tr> </tbody> </table> 

  1. Switch back to wysiwyg mode and right click in the cell labeled 2.2
  2. Select Cell -> Insert Cell After from the context menu. The 2nd row in the table should now have 3 cells.
  3. Right click in the new cell and select Column -> Insert Column After.

Problem: The column is not inserted and a script error occurs.

The error is:

P[S] is undefined
Line 86

When run using ckeditor_source.js the error is:

cloneCol[i] is undefined
Line 292

The code in insertColumn() in tabletools/plugin.js tries to check the colspan of each cell in the column but 2 of the cells in the new column are undefined - therefore the error is thrown.

Change History (2)

comment:1 Changed 12 years ago by Jakub Ś

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

Reproducible in all browsers from CKEditor 3.5.1 rev [6328].

comment:2 Changed 12 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed

DUP of #8295

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