Support for external images #4311
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Feature] Media
Anything that impacts the experience of managing media
[Feature] Paste
Milestone
Issue Overview
To come across this issue, I copy/pasted a blog article from my live site onto a local testing site. The result of this is some console errors for each image I had originally embedded on the live site:
This is happening because the image blocks store an ID like this
<!-- wp:image {"id":909} -->
, and said image doesn't actually exist on my local site. So this REST API call fails essentially:gutenberg/blocks/library/image/block.js
Line 298 in 003d533
The block settings adjust correctly and don't display the option to change the image's size, but instead of correcting this error for future page-loads, Gutenberg just leaves it as-is and continues to make api requests that fail.
I'm not really sure what the best solution here is, but I'm thinking that support for linking to external images would be the cleanest path. And when an image ID is found to not exist, it could strip away the ID property in the comment object.
The text was updated successfully, but these errors were encountered: