fix: remoteImageSrc to come from resolved source (#5867)
This commit is contained in:
parent
81550ab5ef
commit
2982cd47a9
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (props) => {
|
||||||
src: remoteImageSrc,
|
src: remoteImageSrc,
|
||||||
setEditorContainer,
|
setEditorContainer,
|
||||||
} = props;
|
} = props;
|
||||||
const { src: remoteImageSrc, width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs;
|
const { width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs;
|
||||||
// states
|
// states
|
||||||
const [size, setSize] = useState<Size>({
|
const [size, setSize] = useState<Size>({
|
||||||
width: ensurePixelString(nodeWidth, "35%"),
|
width: ensurePixelString(nodeWidth, "35%"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue