From 123da2ad00dc528d304221773647a040ccd7aa2b Mon Sep 17 00:00:00 2001 From: Palanikannan M Date: Fri, 18 Oct 2024 14:12:38 +0530 Subject: [PATCH] fix: remoteImageSrc to come from resolved source --- .../src/core/extensions/custom-image/components/image-block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/core/extensions/custom-image/components/image-block.tsx b/packages/editor/src/core/extensions/custom-image/components/image-block.tsx index 4054938ef4d..4793d0cda9d 100644 --- a/packages/editor/src/core/extensions/custom-image/components/image-block.tsx +++ b/packages/editor/src/core/extensions/custom-image/components/image-block.tsx @@ -59,7 +59,7 @@ export const CustomImageBlock: React.FC = (props) => { src: remoteImageSrc, setEditorContainer, } = props; - const { src: remoteImageSrc, width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs; + const { width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs; // states const [size, setSize] = useState({ width: ensurePixelString(nodeWidth, "35%"),