diff --git a/libs/ui/src/components/rich-input.tsx b/libs/ui/src/components/rich-input.tsx index cd054fed..93de5679 100644 --- a/libs/ui/src/components/rich-input.tsx +++ b/libs/ui/src/components/rich-input.tsx @@ -85,7 +85,12 @@ const InsertImageForm = ({ onInsert }: InsertImageProps) => { return (
- + { + e.stopPropagation(); + e.preventDefault(); + form.handleSubmit(onSubmit)(); + }}>

Insert an image from an external URL and use it on your resume.

@@ -384,6 +389,7 @@ const Toolbar = ({ editor }: { editor: Editor }) => { size="sm" variant="ghost" className="px-2" + type="button" disabled={!editor.can().chain().focus().setHardBreak().run()} onClick={() => editor.chain().focus().setHardBreak().run()} > @@ -396,6 +402,7 @@ const Toolbar = ({ editor }: { editor: Editor }) => { size="sm" variant="ghost" className="px-2" + type="button" disabled={!editor.can().chain().focus().setHorizontalRule().run()} onClick={() => editor.chain().focus().setHorizontalRule().run()} >