Opened 16 years ago
Closed 16 years ago
#3940 closed Bug (fixed)
list operation doesn't stop at table
| Reported by: | Garry Yao | Owned by: | Tobiasz Cudnik |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.0 |
| Component: | General | Version: | |
| Keywords: | Confirmed Review+ | Cc: |
Description
Reproducing Procedures
- Open the attached example page.
- Select the table cell content, and click 'Create/Remove Bullted List'.
- Actual Result:
-
list
list in table
-
list
- Expected Result:
- list
- list in table
- list
- Actual Result:
Attachments (4)
Change History (13)
Changed 16 years ago by
| Attachment: | 3940_TC.html added |
|---|
comment:1 Changed 16 years ago by
| Owner: | set to Tobiasz Cudnik |
|---|---|
| Status: | new → assigned |
Changed 16 years ago by
| Attachment: | 3940.patch added |
|---|
comment:2 Changed 16 years ago by
| Keywords: | Review? added |
|---|
This patch forbids to merge cell elements with table-wrapping list. It's also possible to create list selecting multiple block and table cells.
comment:3 Changed 16 years ago by
| Keywords: | Review- added; Review? removed |
|---|
We should not target only the specific <td> tag on line L421:
if ( block.getName() != 'td' )
instead we could have:
if ( blockLimit.getName() != 'body' )
comment:4 Changed 16 years ago by
It doesn't perform so well with blockLimit check if "body". Video TC.
comment:5 Changed 16 years ago by
Thanks for the video TC, I haven't test it, just want to explain my point, I mean we could group by blockLimit prior to grouping by ancestor list, and please test the patch carefully with enterkey, indent etc.
Changed 16 years ago by
| Attachment: | 3940_2.patch added |
|---|
comment:6 Changed 16 years ago by
Now condition checks if blockLimit is a body or block is nested list element and then allows to grouping by list ancestor.
What's missing i think is turning off list button ON state when focusing non-list inside a table which is inside a list.
One issue is closely releted list nested inside a table from indent plugin. When clicking enter second time to create new list element, JS error is thrown and bookmarks can be found in markup. Although this issue is not an regression and exists in trunk.
Changed 16 years ago by
| Attachment: | 3940_3.patch added |
|---|
comment:7 Changed 16 years ago by
| Keywords: | Review? added; Review- removed |
|---|
Garry extended the patch by providing toolbar button state changing and correcting indent plugin issue.
comment:8 Changed 16 years ago by
| Keywords: | Review+ added; Review? removed |
|---|

Sample page for reproducing