Skip to content

Commit

Permalink
Actually fix extra lines inserted by RichTextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-leamon committed Dec 18, 2023
1 parent 3e9e4fe commit 8dd1703
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"version": "1.0.45",
"version": "1.0.46",
"description": "Formation is a comprehensive component library powered by React, Styled Components, and CSS variables for creating apps and websites that demand responsive, unified cross-platform experiences.",
"resolutions": {
"string-width": "^4",
Expand Down
12 changes: 6 additions & 6 deletions src/components/RichTextEditor/RichTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ export const RichTextEditor: FC<RichTextEditorProps> = ({
ref={quillRef}
value={value}
defaultValue={value}
onChange={(val : string) => onChange(val.replace('<p><br></p>', ''))}
clipboard={{
matchVisual: false
}}
onChange={onChange}
modules={{
toolbar: '#custom-toolbar'
toolbar: '#custom-toolbar',
clipboard: {
matchVisual: false
}
}}
/>
</StyleHTML>
Expand Down Expand Up @@ -302,7 +302,7 @@ const S = {
`}
`,
Toolbar: styled.div`
width: calc(100% - 1.5rem);
width: 100%;
border-bottom: 1px solid var(--F_Surface_2);
padding: 0 .75rem;
`,
Expand Down

0 comments on commit 8dd1703

Please sign in to comment.