tiptap: fix get image size

This commit is contained in:
fantasticit 2022-06-04 23:03:28 +08:00
parent 2932e1d6bd
commit 1ccad83686
1 changed files with 1 additions and 1 deletions

View File

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