Bug: Insert an image inside another image's caption
Currently, a user can insert an image inside another image's caption which may cover up or deface the original image. Probably a variety of elements that can be inserted in an image's caption should be limited.
Lexical version:
Steps To Reproduce
- Open https://playground.lexical.dev/ in Chrome
- Insert a sample image
- Click on the image caption
- Go to the Toolbar and insert "Image"
- Select from "URL".
- Insert a new image URI.
- See that the new image covers the original one.
The current behavior
https://github.com/facebook/lexical/assets/5062807/efb8e972-6d74-4f86-b2b1-d61cd4ed3794
The expected behavior
A user is not able to insert an image into the caption.
IMO, we shall be running there nested editor that supports only basic rich text (see examples/react-rich setup). Maybe even plain text only?
Hi Maxplav, I'm Rabel Mervin, I'm reaching out because I'm interested in contributing this project Could you please provide me any processes I should follow to solve this Issue ?
Hi Maxplav, I'm Rabel Mervin, I'm reaching out because I'm interested in contributing this project Could you please provide me any processes I should follow to solve this Issue ?
Hi! You can start here: https://github.com/facebook/lexical/blob/main/CONTRIBUTING.md
Thanks @StyleT for your help.