Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with images #28

Open
fatesallow opened this issue Apr 27, 2023 · 1 comment
Open

Working with images #28

fatesallow opened this issue Apr 27, 2023 · 1 comment
Labels
Ryan Has Issues Your issues are my issues!

Comments

@fatesallow
Copy link

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 Cover templates for @wordpress/create-block and how to create multiple blocks #1 but, making sure if the user changes the featured image it changes in the block.

Thank you!

@fatesallow fatesallow added the Ryan Has Issues Your issues are my issues! label Apr 27, 2023
@troychaplin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ryan Has Issues Your issues are my issues!
Projects
None yet
Development

No branches or pull requests

2 participants