Skip to content

Commit

Permalink
editor: refactor config for editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah authored and lnielsen committed Feb 21, 2024
1 parent f6d7744 commit 295031e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/forms/RichEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class RichEditor extends Component {
render() {
const { id, value, disabled, minHeight, onBlur, onChange, onFocus, editorConfig } =
this.props;
const config = editorConfig || {
const config = {
branding: false,
menubar: false,
statusbar: false,
Expand All @@ -34,6 +34,7 @@ export class RichEditor extends Component {
autoresize_bottom_margin: 20,
block_formats: "Paragraph=p; Header 1=h1; Header 2=h2; Header 3=h3",
table_advtab: false,
...editorConfig,
};

return (
Expand Down

0 comments on commit 295031e

Please sign in to comment.