Closed MaxPlav closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lexical | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 15, 2024 9:16pm |
lexical-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 15, 2024 9:16pm |
Currently, if an image fails to load because of a network error, the page is down, etc. the Node is silently inserted but no UI is shown.
Description
Adding a fallback image that would substitute an original image if it fails to load due to a network failure etc.
Closes: #5564
Test plan
https://github.com/facebook/lexical/issues/5564#issuecomment-2040647027
Before
https://github.com/facebook/lexical/assets/5062807/8501bb84-ba14-4f63-be25-dc44d0fc65c9
After
https://github.com/facebook/lexical/assets/5062807/a35980d7-4358-4eca-8806-626b36e10be5
Insert relevant screenshots/recordings/automated-tests