Closed jelle360 closed 1 week ago
Hi, thanks for getting in touch!
You need 2 adjustments to your config:
It’s also worth mentioning the converterPriority: 'high'
option. It might be useful if you would like to use both the standard and your own version of h2. This option will ensure that your h2 is converted before the standard h2.
I hope this helps!
I’ll close this now, but feel free to reach out if you run into any further issues.
Description
I would like to add multiple classes to a heading for styling in the front-end. When I configure this in custom config options and try to use this in the CKEditor field, a border appears in the text field around the heading. After saving the entry, the text will be displayed as if it was saved as a paragraph. When rendering this in the front-end, the classes that were defined in the custom config options are all present. This happens when the classes are defined as a string with spaces:
'text text--bold text--big'
, but also if they are defined as an array:['text', 'text--bold', 'text--big']
. This is the complete custom config that results in this issue:Steps to reproduce
Additional info
After selecting the heading:
After saving the entry: