The prop handlePastedText leads to a "editorState not defined" in versions above 1.12.7 (to be precise on 1.12.9 and 1.12.10 for sure).
On a side note in case you paste a formatted text with newlines the value of the "text" parameter is truncated to the last line.
did you minify js code as well?
My version is 1.12.4 and I got same error after js been minified,
please reference to https://github.com/jpuri/react-draft-wysiwyg/issues/621
I'm using the minified version of the library in a dev environment.
(sorry, do I have to do something to explicitly put a reference on the thread you have mentioned?)
Same here. Only happens in minified code. (v. 1.12.7)
Uncaught ReferenceError: editorState is not defined
at Object.J.handlePastedText (bundle.js?v=release-1.37.0:formatted:76224)
There 's any workaround? Some plans to fix it in near future?
Thx
@Huespal so my work around was to define my own handlePastedText function and pass it to the editor. This is literally my function
handlePastedText(text) {
}