twitch icon indicating copy to clipboard operation
twitch copied to clipboard

Working with images

Open fatesallow opened this issue 2 years ago • 1 comments

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:

  1. 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?

  2. 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."

  3. Goes with #1 but, making sure if the user changes the featured image it changes in the block.

Thank you!

fatesallow avatar Apr 27 '23 13:04 fatesallow

+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.

troychaplin avatar May 04 '23 14:05 troychaplin