As a user who has selected the Unsplash block in the block editor I expect that I would be presented with the ability to quickly search, find and select an Unsplash image that meets my criteria
I expect that selecting the Unsplash block will immediately present me with the placeholder, indicating to me that I now need to click the button to bring. up the media selector modal.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
User clicks the Unsplash Image from the block selector and the block placeholder is placed in the editor at the correct location
User is presented with words and a button to trigger display of the Unsplash Media Selector
Use Placeholder core component to display the placeholder and Search Unspash button, clicking the button will invoke the custom Unsplash media view open method.
The placeholder is displayed only if no unsplash image is selected, if an image is selected add a Replace button in the toolbar. Clicking the button opens the Unspash modal and let's the user select a different image.
Feature description
As a user who has selected the Unsplash block in the block editor I expect that I would be presented with the ability to quickly search, find and select an Unsplash image that meets my criteria
I expect that selecting the Unsplash block will immediately present me with the placeholder, indicating to me that I now need to click the button to bring. up the media selector modal.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
User clicks the Unsplash Image from the block selector and the block placeholder is placed in the editor at the correct location
User is presented with words and a button to trigger display of the Unsplash Media Selector
Placeholder state matches the mocks provided in https://github.com/xwp/unsplash-wp/issues/124 - Link to Figma
Implementation brief
Use
Placeholder
core component to display the placeholder andSearch Unspash
button, clicking the button will invoke the custom Unsplash media viewopen
method.The placeholder is displayed only if no unsplash image is selected, if an image is selected add a
Replace
button in the toolbar. Clicking the button opens the Unspash modal and let's the user select a different image.QA testing instructions
Demo
Changelog entry