- Issue created by @zebda
- Status changed to Postponed: needs info
10 months ago 1:26pm 11 March 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
AFAICT this is a duplicate/subset of ๐ [upstream] [Table] CKEditor 5 changes and keeps only a single , which impedes screen reader accessibility of HTML tables Postponed ? ๐
Could you please confirm? ๐
- ๐ณ๐ฑNetherlands zebda
I don't have the feeling this is the same. The issue you are referring to is about pasted in code been scrambled. My issue is about code CKEditor delivers that is not accessible.
I create the table using the CKEditors interface not using code. I can add the
scope
attribute manually but I don't want to bother my users with this. This should work by default. - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
The "pasting" part is not crucial for the steps to reproduce. It's just included in the steps to reproduce to make it easy to reproduce. See the linked upstream issue ๐
- ๐ณ๐ฑNetherlands zebda
Okay but still complete issue and the upstream issue is about code being scrambled. Mine is about CKEditor not outputing the right accessible code in the first place. Its not scrambling the code it is just not present. I found one mention on the upstream issue about this but I don't know if this is highlighted enough or will be fixed when the upstream issue is fixed.
- Status changed to Active
8 months ago 2:19am 17 April 2024 - ๐จ๐ฆCanada andrew.wang
I second that this issue might be unrelated to #3384400, which is about CKEditor 5 mangling an existing table that might already have the
scope
attribute in the markup.On the other hand, this issue is an accessibility issue and can be reproduced from scratch, without any existing markup. CKEditor should automatically add the
scope
attribute to<th>
elements for accessibility reasons when defining a row or column as header using the toolbar. This used to work in CKEditor 4, but is absent in CKEditor 5. Although we can go to source mode and addscope
attribute to<th>
elements manually, tables with header rows and/or header columns created using only WYSIWYG are by default inaccessible.In addition to the GitHub comment mentioned in #5, thereโs a separate upstream issue about this accessibility issue on GitHub: https://github.com/ckeditor/ckeditor5/issues/3175
- ๐ณ๐ฑNetherlands watergate
We stumbled upon this problem and created a text filter plugin. So, it is not a direct solution to get this
scope
attribute to be applied correctly by CKEditor, but it might be a helpful workaround (with the additional benefit that it isn't restricted to only CKEditor). See Table Header Scope AttributeAt this moment, it uses a basic/simple strategy to set
scope="col"
andscope="row"
to<th>
elements. It covers our use cases, but there is room for improvement.