mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.75k stars 139 forks source link

[BUG] Disappearing image with using Rich Text copy-and-paste on a URL/markdown-styled image #550

Closed rissois closed 1 month ago

rissois commented 1 month ago

This issue can be created easily on the live demo

  1. Create a markdown-styled image in the document by either A) clicking on the image icon and adding the image from URL; or B) going into markdown mode and adding an image with ![](). (example image: https://picsum.photos/200/300)
  2. On the rich text preview, copy the image
  3. Paste the image elsewhere in the document

The image disappears, but you will see a new image toolbar. If you check the markdown, you will find <img src="..." width="0" height="0" />

petyosi commented 1 month ago

This is fixed in the latest release.