Tiled gallery & slider blocks: conditionally transform shortcodes #11779
Labels
[Block] Slideshow
[Block] Tiled Gallery
[Feature] Shortcodes / Embeds
[Feature] Tiled Gallery
A different way to display image galleries on your site, in different organizations and shapes.
[Focus] Blocks
Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack
[gallery]
shortcode transform is shared between the core gallery Tiled gallery and Slideshow blocks.Whichever has higher priority set, happens to win (
currently Tiled gallery winsupdate: shortcode transform from the Tiled gallery block was temporarily removed).We should conditionally transform to Tiled gallery and Slideshow blocks only when valid
layout
attribute is set and let core gallery take care of the transform otherwise.Problem / blocker
Core doesn't currently support using
isMatch
in shortcode transforms (WordPress/gutenberg#10674 and I don't see a way to divert transformation to some other block conditionally.The Best way forward seems to get
isMatch
fixed in core.isMatch
could be something like this for Tiled gallery block:...and for the slideshow block:
The text was updated successfully, but these errors were encountered: