Rich Text Editor
Lets users create and format styled text content, and embed rich media such as links and images.
This is an example of handling attachments and inline images in the rich text editor.
Functionality:
- Pasting images adds them as inline images, while pasting other files adds them as attachments.
- Dragging non-images over the editor shows a drop zone covering the entire editor area, which adds files as attachments.
- When dragging images over the editor, the drop zone is limited to the bottom and allows the choice of dragging them into the editor or adding them as attachments.
- Clicking the "Upload" button simulates uploading all inline images, showing a loading placeholder during upload and an upload error for every second image.