From d7e0370b5bc103d727ccdfdf44302e447346f536 Mon Sep 17 00:00:00 2001 From: mozzi34 <160555885+mozzi34@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:09:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=82=BD?= =?UTF-8?q?=EC=9E=85=20=ED=9B=84=20=EB=8B=A8=EB=9D=BD=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/use-toolbar.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/editor/use-toolbar.ts b/src/components/editor/use-toolbar.ts index 28008be..5800935 100644 --- a/src/components/editor/use-toolbar.ts +++ b/src/components/editor/use-toolbar.ts @@ -54,9 +54,7 @@ export const useToolbar = () => { const insertImage = (file: File) => { const id = nanoid(); - editor.chain().focus().insertImage({ url: null, id }).run(); - - editor.commands.enter(); + editor.chain().focus().insertImage({ url: null, id }).createParagraphNear().run(); uploadImage(file, { onSuccess: (data) => {