diff --git a/packages/client/src/tiptap/core/wrappers/image/index.tsx b/packages/client/src/tiptap/core/wrappers/image/index.tsx index 20206ba9..425a4010 100644 --- a/packages/client/src/tiptap/core/wrappers/image/index.tsx +++ b/packages/client/src/tiptap/core/wrappers/image/index.tsx @@ -50,7 +50,7 @@ export const ImageWrapper = ({ editor, node, updateAttributes }) => { try { const src = await uploadFile(file); - const size = await getImageWidthHeight(file); + const size = await getImageWidthHeight(src); updateAttributes({ ...fileInfo, ...size, src }); toggleLoading(false); } catch (error) {