redactor
redactor copied to clipboard
Redactor inside Craft CMS is not applying format classes
Description
Redactor inside Craft CMS is not applying format classes
{
"buttons": ["formatting", "bold", "lists"],
"formatting": ["p"],
"formattingAdd": {
"providers-feature-paragraph": {
"title": "Feature Paragraph",
"api": "module.block.format",
"args": {
"tag": "p",
"class": "providers-feature-paragraph"
}
}
},
"plugins": ["fullscreen", "table", "counter"],
"toolbarFixed": true,
"source": true,
"linkNewTab": true
}
Steps to reproduce
Additional info
- Craft version: 3.7.18
- PHP version: 7.4
- Database driver & version:
- Plugins & versions: 2.8.8
I'm having issues with Redactor in Craft 3 as well. It will apply the format initially, but won't remove the format even with "type": "toggle" added to the "args".
For me, it doesn't apply any class

A class should apply to P tag but it doesn't.
Custom styles are a bit finicky in Redactor.
There will be a release next week that also updates the Redactor version - maybe that will help.