Global defaults

Set shared defaults with Redactor.settings, then pass per-editor options in each constructor call.


Code

<textarea id="entry-notes"></textarea>
<textarea id="entry-summary"></textarea>
Redactor.settings = {
    placeholder: 'Placeholder from global settings'
};

const notes = Redactor('#entry-notes', {
    pathbar: true
});

const summary = Redactor('#entry-summary', {
    source: false
});