In Redactor, how can I add a formatting option to Add a CSS class to an image? formattingAdd only works for block elements. So the below does not work.

"formattingAdd": {
        "img75": {
            "title": "Image 75% Width",
            "api": "module.inline.format",
            "args": {
                "tag": "img",
                "class": "img75",
                "type": "toggle"
  • have you tried Redactor Custom Styles Plugin? – Matthias Apr 6 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.