Skip to content

Commit 295031e

Browse files
Fatimahlnielsen
authored andcommitted
editor: refactor config for editor
1 parent f6d7744 commit 295031e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/forms/RichEditor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class RichEditor extends Component {
2121
render() {
2222
const { id, value, disabled, minHeight, onBlur, onChange, onFocus, editorConfig } =
2323
this.props;
24-
const config = editorConfig || {
24+
const config = {
2525
branding: false,
2626
menubar: false,
2727
statusbar: false,
@@ -34,6 +34,7 @@ export class RichEditor extends Component {
3434
autoresize_bottom_margin: 20,
3535
block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3",
3636
table_advtab: false,
37+
...editorConfig,
3738
};
3839

3940
return (

0 commit comments

Comments
 (0)