diff --git a/libs/ui/src/components/rich-input.tsx b/libs/ui/src/components/rich-input.tsx index 8ac9fafa..be92cf00 100644 --- a/libs/ui/src/components/rich-input.tsx +++ b/libs/ui/src/components/rich-input.tsx @@ -71,7 +71,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.

@@ -370,6 +375,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()} > @@ -382,6 +388,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()} >