h4, h5, and h6 fail to downcast GHS added attributes #10539
Labels
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
class attribute should downcast on the heading regardless of its level.
❌ Actual result
class attribute doesn't downcast on h4, h5, and h6.
❓ Possible solution
It seems like https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-html-support/src/schemadefinitions.js maps heading views to elements. However, not all supported heading views are mapped. Also, the mapping assumes that heading1 is mapped to h2 while its mapping can be configured.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: