Describe the bug
Starting from version 3.5.0 of suneditor-react, the onPaste prop is no longer being initialised.
functions.onPaste is always null, hence typeof functions.onPaste === 'function' is always false on line 8032 of core.js
To Reproduce
Steps to reproduce the behavior in version 3.5.0:
Add the onPaste prop to the component, i.e.:
Define the handlePaste method, i.e. const handlePaste= () => console.log('test paste')
Expected behavior
Expected: 'test paste' printed in console
Actual: nothing printed in console because the handlePaste method is not called (seen as null I think)
Desktop (please complete the following information):
Describe the bug Starting from version 3.5.0 of suneditor-react, the onPaste prop is no longer being initialised. functions.onPaste is always null, hence typeof functions.onPaste === 'function' is always false on line 8032 of core.js
This works fine for versions <= 3.4.1.
Related repository
To Reproduce Steps to reproduce the behavior in version 3.5.0:
Expected behavior Expected: 'test paste' printed in console Actual: nothing printed in console because the handlePaste method is not called (seen as null I think)
Desktop (please complete the following information):