diff --git a/src/lib/forms/RichEditor.js b/src/lib/forms/RichEditor.js index 6605d70f..76d52bfb 100644 --- a/src/lib/forms/RichEditor.js +++ b/src/lib/forms/RichEditor.js @@ -21,20 +21,21 @@ export class RichEditor extends Component { render() { const { id, value, disabled, minHeight, onBlur, onChange, onFocus, editorConfig } = this.props; - const config = editorConfig || { - branding: false, - menubar: false, - statusbar: false, - min_height: minHeight, - content_style: "body { font-size: 14px; }", - plugins: ["codesample", "link", "lists", "table", "autoresize"], - contextmenu: false, - toolbar: - "blocks | bold italic link codesample blockquote table | bullist numlist | outdent indent | undo redo", - autoresize_bottom_margin: 20, - block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3", - table_advtab: false, - }; + const config = { + branding: false, + menubar: false, + statusbar: false, + min_height: minHeight, + content_style: "body { font-size: 14px; }", + plugins: ["codesample", "link", "lists", "table", "autoresize"], + contextmenu: false, + toolbar: + "blocks | bold italic link codesample blockquote table | bullist numlist | outdent indent | undo redo", + autoresize_bottom_margin: 20, + block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3", + table_advtab: false, + ...editorConfig, + }; return (