handling caption and description
This commit is contained in:
parent
3acbf24c42
commit
5701aed4b3
|
|
@ -15,6 +15,8 @@ export default function ImagePanelBody({ imageUrl, imageAlt, imageId, imagePropo
|
||||||
imageId: image.id,
|
imageId: image.id,
|
||||||
imageAlt: image.alt,
|
imageAlt: image.alt,
|
||||||
imageUrl: image.url,
|
imageUrl: image.url,
|
||||||
|
imageCaption: image.caption,
|
||||||
|
imageDescription: image.description,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -23,10 +25,11 @@ export default function ImagePanelBody({ imageUrl, imageAlt, imageId, imagePropo
|
||||||
imageId: null,
|
imageId: null,
|
||||||
imageAlt: null,
|
imageAlt: null,
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
|
imageCaption: null,
|
||||||
|
imageDescription: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function onImageProportionChange(imageProportion) {
|
function onImageProportionChange(imageProportion) {
|
||||||
console.log(imageProportion);
|
|
||||||
setAttributes({ imageProportion });
|
setAttributes({ imageProportion });
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user