table cells get class="focus-visible"
Description
Redactor sets class="focus-visible" to focuses tables inside redactor. If saving now, those classes stay at the table.
Steps to reproduce
- add tablet to redacor entry
- click a table column -> class="focus-visible" is added
- save entry
- BUG: class="focus-visible" stays
Maybe Solution: do not add class="focus-visible" on table cells inside redactor.
Additional info
- Craft version: 4.x
- PHP version: 8.1
- Plugins & versions: 3.0.2
I am seeing this issue as well in Craft 3.7.55.2:

Saving the entry actually saves the focus-visible class.
Still an issue with Craft 4.2.5.2 and Redactor 3.0.2. This is very annoying if you have styles for .focus-visible in the frontend as well, since you can't get rid of this without editing the HTML manually.
Workaround
Create a HTMLPurifier config inside config/htmlpurifier/something.json:
{
"Attr.ForbiddenClasses": ["focus-visible"]
}
and enable this config for the Redactor field. After resaving the field, all focus-visible classes should have been removed.