diff --git a/packages/dante3/src/popovers/addButton.tsx b/packages/dante3/src/popovers/addButton.tsx index 927d5b3b..13513359 100644 --- a/packages/dante3/src/popovers/addButton.tsx +++ b/packages/dante3/src/popovers/addButton.tsx @@ -126,10 +126,6 @@ const AddButton = React.forwardRef( function insertImage(file) { if (!file) return; - let opts = { - url: URL.createObjectURL(file), - file - }; // cleans input image value fileInput.current.value = ""; @@ -141,7 +137,7 @@ const AddButton = React.forwardRef( editor.commands.insertContent({ type: "ImageBlock", attrs: { - file: file, + file, url: URL.createObjectURL(file) } });