From 5bc0230a5aeaa770d27df3dab7fe9b066ceb87f9 Mon Sep 17 00:00:00 2001 From: 2368883029 <95886018+2368883029@users.noreply.github.com> Date: Sun, 21 Jul 2024 00:54:00 -0400 Subject: [PATCH] Fix: Can't insert image in a category other than summary --- libs/ui/src/components/rich-input.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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()} >