twitch
twitch copied to clipboard
Working with images
Describe the issue your running into with your code
I'd love to see you code a block that shows how to work with images. My hang-ups:
-
When I use MediaPlaceholder it gives the option for "upload" and "media library." How do you add "Use featured image" like core's Cover block?
-
How to add a "Replace" button to the block toolbar, like core's Image block. It gives options for "open media library," "upload," and "Current media URL."
-
Goes with #1 but, making sure if the user changes the featured image it changes in the block.
Thank you!
+1 on this, I've been looking at how I can replicate something similar to how the core/media-text block uses images and haven't quite nailed it down.