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) => {