Skip to content

Commit

Permalink
fix: remoteImageSrc to come from resolved source
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Oct 18, 2024
1 parent 81550ab commit 123da2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (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<Size>({
width: ensurePixelString(nodeWidth, "35%"),
Expand Down

0 comments on commit 123da2a

Please sign in to comment.