From 1e955ce7fe47fbf572727b51d4967d42737ae73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Tue, 16 Aug 2022 19:08:57 +0200 Subject: [PATCH] Mark which attributes of the image should be considered content --- packages/block-library/src/image/block.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index ba19aaa9d954d7..5b02df236a221d 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -16,31 +16,36 @@ "type": "string", "source": "attribute", "selector": "img", - "attribute": "src" + "attribute": "src", + "__experimentalRole": "content" }, "alt": { "type": "string", "source": "attribute", "selector": "img", "attribute": "alt", - "default": "" + "default": "", + "__experimentalRole": "content" }, "caption": { "type": "string", "source": "html", - "selector": "figcaption" + "selector": "figcaption", + "__experimentalRole": "content" }, "title": { "type": "string", "source": "attribute", "selector": "img", - "attribute": "title" + "attribute": "title", + "__experimentalRole": "content" }, "href": { "type": "string", "source": "attribute", "selector": "figure > a", - "attribute": "href" + "attribute": "href", + "__experimentalRole": "content" }, "rel": { "type": "string", @@ -55,7 +60,8 @@ "attribute": "class" }, "id": { - "type": "number" + "type": "number", + "__experimentalRole": "content" }, "width": { "type": "number"