In client projects, I would sometimes recommend the following semantic options for most rich text format areas:
- Bold (strong)
- Italics (emphasis)
- Insert Character
- Sometimes heading levels like H2, H3, etc. (sometimes skipping H1 based on SEO requirements) for article-like content types
No Colors, Fonts, or Inline Styles
We'd also try to control most presentation-related attributes in templates or with CSS. For example editors shouldn't choose colors or fonts.A common requirement was to strip word attributes and inline styles (via templates or the XSLT rich text format area).
What do you do?
What do you recommend or implement in your projects and set ups?
All on, all off, or some RTF options? Which ones?
How often do you have a "Code" component for any HTML?
How often do you allow CSS classes in RTF or as fields in Schemas?
Do your editors use heading levels (H1-H6) in RTF?
Do you use the style options in the Content Manager? This allows editors to apply a style to certain elements in a field (based on the CSS selector definition).
Finally, I've seen your workarounds to allow HTML5 data attributes in rich text format areas (which are XML in the XHTML namespace). Is this common?