Bug: Error while trying to remove inline image
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 55
Description
When i insert a inline image node, export it to JSON, and tries to import it again, it throws an error when i try to delete it.
Here is the error code in the Lexical website: https://lexical.dev/docs/error?code=66&v=50
Lexical version: 0.12.0
## Steps To Reproduce
1. Insert a inline image node
2. Export to JSON
3. Import it
4. Try to delete the node by selecting the image and pressing the delete key (or backspace)
[Screencast from 2023-08-11 14-04-41.webm](https://github.com/facebook/lexical/assets/71992919/72f2dfd0-4909-4183-a969-a43279270a81)
## The current behavior
It throws this error: https://lexical.dev/docs/error?code=66&v=50
## The expected behavior
Delete the image
Contributor guide
Assessment
This issue has not been assessed yet.