1

After updating to Craft 2.5, some rich text fields have disappeared from the CMS.Field Missing

While this similar to the issue described here, the answer did not fully resolve my issue.

2

It looked like my custom Redactor configuration files needed to be updated to be compatible with the latest version of Redactor that was included with Craft 2.5. The This Craft support page described some of the changes, but these did not fully fix my issue.

I figured out that the structure of "formattingAdd" configuration had been updated. Once I followed the format described on the Imperavi site, the fields started displaying again.

Version 1 formattingAdd syntax:

formattingAdd: [
    {
        tag: 'p',
        title: 'Disclaimer',
        class: 'disclaimer'
    },
    {
        tag: 'a',
        title: 'Secondary CTA',
        class: 'btn btn-default'
    }
]

Version II formattingAdd syntax:

formattingAdd: {
    'disclaimer-add': {
        title: 'Disclaimer',
        args: ['p', 'class', 'disclaimer', 'add']
    },
    'secondary-add': {
        title: 'Secondary CTA',
        args: ['a', 'class', 'btn btn-default', 'add']
    }
}

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.