-
Notifications
You must be signed in to change notification settings - Fork 56
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
Media & Text - Media picker buttons are not functional #1313
Comments
This work is dependent on this PR which is very close to merge WordPress/gutenberg#16305 |
Hey @pinarol ! So I've finished reviewing the task, I saw the image functionality is already implemented but not fully, here's a summary of the main issue: 1st interactionAdding image from WordPress media libraryBase implementation is there but some are missing:
2nd interactionUploading image from device libraryBase implementation is there but some are missing
Uploading image by capturingBase implementation is there but some are missing
3rd iterationAdding video from WordPress media libraryNot implemented yet Uploading video from device libraryNot implemented yet Uploading video by capturingNot implemented yet After reviewing it I’d like to double check a few things: Do we want to add the Media Upload progress and the edit button in the toolbar to keep it consistent as the Video / Image blocks? For those, I’d reuse the MediaUploadProgress component but it's within the image block (the video block uses it as well) so I think it’d be best to extract it out of the image block since it would be used from different components (Image, Video, and MediaText). Any thoughts on this? To add the video functionality we can as well reuse part of the code of the Video block but it’d also affect if we want to have the upload progress as well and if we extract the previously mentioned component (Media Upload Progress) or not. Let me know when you can, thanks! |
hi @geriux 👋 Thanks for the analysis! I'll share my opinions here but defer the conclusion to @koke
I think so yes.
Sounds good to me 👍 I expect media area behave same with image/video blocks. Maybe we can go even one step further and use InnerBlocks to embed image/video blocks directly in Media & Text but I don't know what kind of technical problems we'd be facing along the way tbh. |
I agree that, as a general rule, it should behave as closely as possible to the image and video blocks. It makes a lot of sense to extract |
Thank you both! I'll investigate about the I'll let you know once I review that =) |
Looks good to me 👍 |
We need to make Media picker buttons functional.
Support for these items:
1st iteration:
2nd iteration:
3rd iteration:
Please refer to already existing image/video blocks for similar functionality.
The text was updated successfully, but these errors were encountered: