Opened 14 years ago
Closed 11 years ago
#6883 closed Bug (duplicate)
Table Dialog error when clicking OK button if multiple table cells are selected
Reported by: | Brian Shiver | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: | satya_minnekanti@… |
Description (last modified by )
It is possible to get a "Uncaught TypeError: Cannot call method 'appendChild' of undefined" [Chrome] error ("k.$ is undefined" in Firefox) when clicking the OK button in the table dialog if the user selected multiple table cells before launching the table dialog. This bug affects all major browsers.
To reproduce:
- Click the table dialog toolbar button and press the "Ok" button to insert a new table.
- Select multiple cells in the new table by either clicking and dragging or Ctrl-clicking multiple cells.
- Press the table dialog toolbar button again.
- Press the "Ok" button in the table dialog.
Results:
If you check the console you will see the described error, and the Table Dialog will stay in open.
Change History (9)
comment:1 Changed 14 years ago by
Keywords: | Table Dialog removed |
---|---|
Status: | new → confirmed |
Version: | 3.5 → 3.2.2 |
comment:2 Changed 14 years ago by
Cc: | satya_minnekanti@… added |
---|
comment:3 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | confirmed → closed |
I'm not able to reproduce it any more with trunk.
comment:5 Changed 13 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
This is still reproducible:
- Clear editor contents.
- Click the table dialog toolbar button and press the "Ok" button to insert a new table.
- Fill table cells with sample text like "dd"
- Select multiple cells in the new table by either clicking and dragging or Ctrl-clicking multiple cells.
- Press the table dialog toolbar button again.
- Press the "Ok" button in the table dialog.
Message: this.$ is undefined
Line: 201
URI: /trunk/_source/core/dom/element.js
comment:6 Changed 13 years ago by
Status: | reopened → confirmed |
---|
comment:7 Changed 13 years ago by
My fault, I was using the context menu to open Table Properties.
The same thing happens if you click the "Insert Horizontal Line" button at step 5 of the above tc.
It is related to the insertion of elements over a multi-cells selections.
The right approach would be shrinking the selection to the cell touched by the start of the selection before proceeding with the insertion.
comment:8 Changed 11 years ago by
Version: | 3.2.2 → 3.0 |
---|
#10811 was marked as duplicate.
This issue has become critical in CKE 4.x. Same TC starting from CKEditor 4.0 beta causes infinite loop and page crashes.
comment:9 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | confirmed → closed |
We fixed this in 4.3.1 - #11183.
Not a 3.5 bug though; IIRC there's a ticket for that already but I can't find it.