1

Craft 2.6.2972

I've created a new redactor config called Basic Config and saved the json in craft/config/redactor based on this Strait Up Craft post. I then created a field and selected the correct config setting and added it to a channel.

However when I go to edit the entry it's not using my config setting as all the formatting options including code etc are there.

enter image description here

the json is:

{
    buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
    plugins: ['fullscreen'],
    formattingTags: ['p', 'blockquote', 'h3', 'h4', 'h5']
}

Not sure why code, h1, and h2 tags are available when clearly they are not in the above formatting options

Please advise.

1

That Straight Up Craft article is pretty old and based on the Redactor I API, I believe.

Pretty sure in Redactor II, formattingTags got replaced with either formatting or formattingAdd, depending on your needs.

| improve this answer | |

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.