After updating to Craft 2.5, some rich text fields have disappeared from the CMS.
While this similar to the issue described here, the answer did not fully resolve my issue.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityAfter updating to Craft 2.5, some rich text fields have disappeared from the CMS.
While this similar to the issue described here, the answer did not fully resolve my issue.
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']
}
}