With Plone 4.x, I cloud add original style, such as extra H2 style, to TinyMCE 'Style" setting.
But in Plone5 TinyMCE 'Style' setting box has gone. I tried to add my original style to 'Header styles' and 'Body styles' box but It only works with 'inline' elements not work with block elements.
How can I add class to Plone5 TinyMCE?
For example, enter 'Heading|h2|foo' transformed to
In Plone 4 we had TinyMCE 3. In Plone 5 we upgraded to TinyMCE 4, which works with a new concept called formats and a new syntax for inline styles, which is Your Custom Format Title|custom_format_id|custom_icon. For block styles you omit the last part, that is, the icon. As you observed, that's different from Plone 4's tinymce.xml where you specify Your Format Title|tag|class.
So after you associate format titles and format ids, you need to define what that format id means. You can do that using the Formats textarea field. There's already a JSON structure in that field, so you'd add an entry after discreet, ending with something like: