Steps to reproduce:
- Create a rich text singleton or area with styles enabled in the toolbar
- Define one or more styles; include at least one using an h2 tag
- Edit the content and add one of the h2 defined styles; allow to save
Expected behavior: h2 styled text persists
Actual behavior: h2 style reverts to plain text on refresh; other tags (h3, h4, h5) work OK
{{ apos.area(data.page, 'aboutBody', {
widgets: {
'apostrophe-images': {},
'page-link': {},
'apostrophe-rich-text': {
toolbar: [ 'Styles'],
styles: [
{ name: 'Main Heading', element: 'h2' },
{ name: 'Sub Heading', element: 'h3' },
{ name: 'Paragraph', element: 'p' }
]
}
}
}) }}