Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When trying to paste images sometimes the hook handlePastedFiles is not triggered, the hook handlePastedText is triggered instead.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
A camera icon is displayed becuse the pasted content was handled as text instead of files.
What is the expected behavior?
The handlePastedFiles hook should be triggered like if you copy and paste and image directly from your file system using a file chooser.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
DraftJS: 0.10.5
Browser: Chrome and Firefox, not tested in other ones.
Do you want to request a feature or report a bug? Bug
What is the current behavior? When trying to paste images sometimes the hook
handlePastedFiles
is not triggered, the hookhandlePastedText
is triggered instead.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
What is the expected behavior? The
handlePastedFiles
hook should be triggered like if you copy and paste and image directly from your file system using a file chooser.Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?