getdave / standalone-block-editor

The accompanying code repository for my official Gutenberg docs tutorial on creating a custom instance of a “block editor”.
https://developer.wordpress.org/block-editor/developers/platform/custom-block-editor/
128 stars 29 forks source link

Enable media Library for image/media block #17

Open techjewel opened 3 years ago

techjewel commented 3 years ago

This project is fantastic and I am using it to create something cool. One thing that is I am trying to accomplish and that is to use the media library for the core image or media blocks.

Currently, I can only upload directly or add from URL. No option to open the media library

Screenshot 2020-09-23 at 3 54 49 PM

Would you please add media library support or shade some light how I can implement that.

Thanks again for this great work <3

techjewel commented 3 years ago

Would you please let me know if it's possible or not. Thanks

getdave commented 3 years ago

Glad you found this project useful.

...let me know if it's possible or not.

I believe it would be possible yes. You might want to take a look at https://github.com/WordPress/gutenberg/blob/024fcb1c0a61761743cd69869bacba6acf0ccfdb/packages/block-editor/src/components/media-upload/README.md. This has some pretty good instructions for how the integration might work.

I don't have any immediate plans to add this functionality to this repo I'm afraid.

techjewel commented 3 years ago

Thanks, I figured it out and I could implement it. Thanks again for making this project. <3 If you want, I can do a pull request.

getdave commented 3 years ago

No problem. Would love a PR. That would be great!

getdave commented 2 years ago

Hi @techjewel if you have a PR for this that would be great.