As an editor using the block editor I expect that if I paste an Unsplash image URL into my post content then it will be treated as an auto-embed, and that the image will be inserted into the post content as an Unpslash image block.
This means that the image will be auto-imported into the site Media Library, and that the editor is updated with an Unpslash image block, with image preview, and the user now has the ability to view / update the asset metadata in the block settings sidebar. The asset is also hotlinked to the end user on presentation, same as any Unpslash image.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Pasting an Unsplash image asset URL into the editor triggers the auto-embed, which results in the following:
-- asset URL is removed from editor and replaced with an Unpslash image block with the image
-- asset is auto-imported into the site's Media Library
Feature description
As an editor using the block editor I expect that if I paste an Unsplash image URL into my post content then it will be treated as an auto-embed, and that the image will be inserted into the post content as an Unpslash image block.
This means that the image will be auto-imported into the site Media Library, and that the editor is updated with an Unpslash image block, with image preview, and the user now has the ability to view / update the asset metadata in the block settings sidebar. The asset is also hotlinked to the end user on presentation, same as any Unpslash image.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry