Helllo r/Wordpress!
As per title says, I’m trying to make a plugin for WordPress, more specifically, an image insertion plugin for Gutenberg.
Basically, the user would have 2 ways to insert an image:
\- By choosing a file that’s on their computer (like the default image block)
\- By searching an image and selecting the one they want to insert.
​
The user would have to choose the way they want to insert an image through a ButtonGroup and depending on their choice, a button (for browsing their files) or a search bar (to search for an image) would appear. Something [like that]) (Imgur link).
​
Would such functionality be possible? If so, how should I proceed?
Thanks in advance.