From 5701aed4b39c5762887893c810364ba5b0d804c2 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 20 Dec 2023 10:06:00 +0100 Subject: [PATCH] handling caption and description --- blocks/_components/ImagePanelBody.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blocks/_components/ImagePanelBody.jsx b/blocks/_components/ImagePanelBody.jsx index 2eb3f48..ef0d1a7 100644 --- a/blocks/_components/ImagePanelBody.jsx +++ b/blocks/_components/ImagePanelBody.jsx @@ -15,6 +15,8 @@ export default function ImagePanelBody({ imageUrl, imageAlt, imageId, imagePropo imageId: image.id, imageAlt: image.alt, imageUrl: image.url, + imageCaption: image.caption, + imageDescription: image.description, }); } @@ -23,10 +25,11 @@ export default function ImagePanelBody({ imageUrl, imageAlt, imageId, imagePropo imageId: null, imageAlt: null, imageUrl: null, + imageCaption: null, + imageDescription: null, }); } function onImageProportionChange(imageProportion) { - console.log(imageProportion); setAttributes({ imageProportion }); } return (