Skip to content

Commit

Permalink
fix: using br instead of p in editor composer
Browse files Browse the repository at this point in the history
  • Loading branch information
nubsthead committed Jul 26, 2022
1 parent 06de72e commit 55cb801
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/integrations/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ const Composer: FC<ComposerProps> = ({
: 'quicklink',
contextmenu: inline ? '' : '',
toolbar_mode: 'wrap',
block_formats:
'Paragraph=p;Header 1=h1;Header 2=h2;Header 3=h3;Header 4=h4;Header 5=h5;Header 6=h6;Div=div;Preformatted=pre'
valid_elements: 'br',
force_br_newlines: true,
force_p_newlines: false,
forced_root_block: ''
}}
onEditorChange={_onEditorChange}
{...rest}
Expand Down

0 comments on commit 55cb801

Please sign in to comment.