From 65e88d3dd8a214cb3e03927fc38bfcb375a7f8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tetsuaki=20Hamano=20/=20=E6=B5=9C=E9=87=8E=20=E5=93=B2?= =?UTF-8?q?=E6=98=8E?= Date: Wed, 9 Mar 2022 15:47:58 +0000 Subject: [PATCH 1/2] Gallery block: disable edit as html support --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/gallery/block.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 6d2343ffda8003..a7bf34a80888c9 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -248,7 +248,7 @@ Display multiple images in a rich gallery. ([Source](https://github.com/WordPres - **Name:** core/gallery - **Category:** media -- **Supports:** align, anchor +- **Supports:** align, anchor, ~~html~~ - **Attributes:** allowResize, caption, columns, fixedHeight, ids, imageCrop, images, linkTarget, linkTo, shortCodeTransforms, sizeSlug ## Group diff --git a/packages/block-library/src/gallery/block.json b/packages/block-library/src/gallery/block.json index fb8db7d14c35ef..e44a88747ca15f 100644 --- a/packages/block-library/src/gallery/block.json +++ b/packages/block-library/src/gallery/block.json @@ -106,7 +106,8 @@ }, "supports": { "anchor": true, - "align": true + "align": true, + "html": false }, "editorStyle": "wp-block-gallery-editor", "style": "wp-block-gallery" From e54be4f8da77d3aaaf6ebfc90b9e259ec8709d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tetsuaki=20Hamano=20/=20=E6=B5=9C=E9=87=8E=20=E5=93=B2?= =?UTF-8?q?=E6=98=8E?= Date: Wed, 9 Mar 2022 15:57:42 +0000 Subject: [PATCH 2/2] update readme --- packages/block-library/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/CHANGELOG.md b/packages/block-library/CHANGELOG.md index 722c970700e3fe..97e9ab4c00d4a7 100644 --- a/packages/block-library/CHANGELOG.md +++ b/packages/block-library/CHANGELOG.md @@ -10,6 +10,7 @@ ### Bug Fix +- Gallery block: disable edit as html support ([#39318](https://github.com/WordPress/gutenberg/pull/39318)). - Removed unused `@wordpress/escape-html` and `@wordpress/is-shallow-equal` dependencies ([#38388](https://github.com/WordPress/gutenberg/pull/38388)). ## 6.1.0 (2022-01-27)