I did this to show how easy it is to create your own media inserter. In production I would create a a server that returns the json.
- Create a block
- in
wp-content/plugins
runnpx @wordpress/create-block@latest my-image-inserter
cd my-image-inserter
- in
- Copy index.js to
my-image-inserter/src/index.js
- Delete
my-image-inserter/my-image-inserter.php
- Copy plugin.php to
my-image-inserter/plugin.php