CKEditor Inconsistent Attributes
complete
Shawn Golley
The "class" attribute is allowed on some HTML elements in the default Folwell CKEditor on Drupal 8, but not on others. It is enabled on elements such as p, div, a, and ul; but it is not available on h2-h5 and table by default.
If there is reasoning behind this differentiation, I'd be curious to understand.
Dimitri Tadege
complete
We have standardized the allowed HTML tags(https://docs.google.com/document/d/1uBrjpL1NSc0wBw3oFyB3s-2mrIvdt3SygtcQyh7VCx8/edit) for the Folwell CKEditor text format. Thank you!
Laura Mazuch
I think this would be a great addition to the CKEditor for Drupal Lite (in Drupal Enterprise, you can add these class tags to the CKEditor yourself).
An alternative would be to add specific H2 Centered, H3 Centered, etc., options to the format drop-down if adding a blanket <h2 class> tag isn't possible for whatever reason.
The new Twin Cities site (https://twin-cities.umn.edu/) has some great examples of elegant, center-aligned H tags used in Folwell elements.
Kathy Jensen
The class attribute was not included for headings tags in order to maintain what is considered an essential design element for Folwell. The research and usability testing done for headings has been fairly extensive. The font choice, sizes, weights, and padding were all carefully considered to provide a balanced presentation and address readability and accessibility.
Kathy Jensen
under review