Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

When I need to make one tiny change to the default config it would be handy to be able to duplicate the current default.json file and just change a one thing instead of building a duplicate from scratch.

It's a small thing, but it would be a nice time saver. I've had no luck finding it, does anyone know if the default is saved somewhere?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

As @Brandon said, the defaults are hardcoded in redactor.js so there isn't a default.json file, but if there was, this is what it would be (from Craft 2.1.2561):

{
    buttons: ['html', 'formatting',  'bold', 'italic', 'deleted',
    'unorderedlist', 'orderedlist', 'outdent', 'indent', 'image', 'video',
    'file', 'table', 'link', 'alignment', 'horizontalrule'],

    formattingTags: ['p', 'blockquote', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5']
}
share|improve this answer

Unfortunately no, the “Default” config is just whatever default values are hard-coded in redactor.js.

share|improve this answer
    
Too bad. That's what I was afraid of. Thanks for the confirmation though! I'll post an answer with the code for it the next time I duplicate it. –  Simon Kuran Jul 17 at 19:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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