This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

Rich Text h2 style does not persist, others work OK

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' }
              ]
            }
          }
        }) }}

Is it better to post bug reports here or on the github? Sorry - newbie here. BTW thanks for making such a fantastic framework - very well architected, easy to use, and yet very flexible!

Hi
Is not a problem, by default apostrophe not allows to put h1, h2.
To skip this problem you must overrate the configuration of apostrophe.
check the following url: http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html

1 Like

ddmallarios answered your original question perfectly — see that HOWTO…

http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html

As for where to post how-to questions:

A how-to question should go to Stack Overflow.

However, you didn’t realize it was a how-to question (: So to answer that point too: bug reports should go to github.

This forum is meant for announcements and general Apostrophe discussion.

Thanks!

Thanks so much for this reply. I was able to configuring using this info.

Great, thanks for the clarification.