Gallery block: Re-introduce v1
#41465
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Priority] High
Used to indicate top priority items that need quick attention
What problem does this address?
The Gallery block supports two different versions of the block:
v1
: The gallery item is rendered using a custom component.v2
: The gallery items are rendered as inner blocks using the Image block.The version to use is determined by the global variable
galleryBlockV2Enabled
that is populated using the editor setting namedgalleryWithImageBlocks
. Due to the changes from this PR, the native version of the editor is now always using thev2
even if the site doesn't support it.What is your proposed solution?
Re-introduce the
v1
by adding a condition to the following code to check if the platform isnative
:gutenberg/packages/block-library/src/gallery/shared.js
Line 35 in b421f4b
The text was updated successfully, but these errors were encountered: