Closed jakegibs617 closed 7 months ago
Thanks for the detailed request!
Indeed, thanks!
Previously discussed in Drupal Slack: https://drupal.slack.com/archives/C01GWN3QYJD/p1695044466385619
Information from https://github.com/ckeditor/ckeditor5/issues/15171
When I paste in CKE5 Source mode the following table, and switch out of source mode and then back into source mode, the <th>
is converted to a <td>
.
<table>
<tbody>
<tr>
<td><a href="#">edit</a></td>
<th scope="row">I AM THE IMPORTANT CELL</th>
<td>things</td>
<td>more things</td>
</tr>
</tbody>
</table>
It appears that currently a <th>
must START the rows, and you cannot have a <td>
followed by a <th>
.
However, this is NOT a requirement of the HTML5 spec. In fact, the example in the specification uses a <th>
after a <td>
.
<tr> <td> <th scope=rowgroup> Cats <td> <td>
This bug can be confirmed without the Source mode button by using the Table widget balloon toolbar operations in the Classic Editor example.
Only the selected 2nd column becomes a header column (visually indicated by bold text and a light gray cell background color).
Both the 1st and 2nd column become header columns.
https://github.com/ckeditor/ckeditor5/assets/243532/2ca120e6-4ea6-4c46-b1ee-e44360f4de27
Rel: #14911
Description of the new feature
As seen in https://www.w3.org/WAI/tutorials/tables/multi-level/
What is the expected behavior of the proposed feature? There are lots of examples where complex multi-level headers are needed. And we cannot do this currently with CKEditor5. We need the ability to assign table header to individual cells without changing other cells. Below is a draft of what the unit test for this could look like:
Currenlty this is failing:
If you'd like to see this feature implemented, add a 👍 reaction to this post.