jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.38k stars 1.16k forks source link

Attempting to paste the image that was previously cut into the editor results in the entire component malfunctioning. #1413

Open ctrl-hack opened 7 months ago

ctrl-hack commented 7 months ago

Steps to reproduce the issue:

  1. Add an image to the editor.
  2. Cut the image.
  3. Paste the image.

This will result in a white page with an error message in the console: "Uncaught Error: invariant(...): Second argument must be a string." image