Closed dcalvom closed 4 years ago
As I understand, you means that
OK, I already understand what your mean. Thanks your pull request, and I have merged it.
Thanks @HarryChen0506! I just add a new pull request. The validation library I use need to access the validity state of the input, therefore is necessary to forward the event into the onEmit method. Thanks again for your help
yes, you are right! the best api should contain an event detail, thank you for your contribution!
Thanks for this great package!
Would you mind to create a release with this latest change so I can install the package from npm? Sorry to bother.
ok, i will public a new release after some hours.
Hello, my friend, I have published a new version(v0.4.4) in NPM. you can use it as follows. :-)
handleEditorChange = ({ html, text}, event) => {
console.log('handleEditorChange', event)
}
Great!!! Thanks man!
@HarryChen0506 I think is necessary to change the onChage? function in the index.d.ts file to accept the event param as follows:
onChange?: (data: {
text: string;
html: string;
}, event: any) => void;
yes, I forgot it. I will correct it next time. Have a nice experience :-)
Thaaaanks! Sorry for bother a lot. If you can wrap that in a release, you will make my day. I'm currently patching my local version but this is not sustainable
I am happy to do it, so you don't have to feel sorry. I will fix it after work as soon as possible.
Awesome! You rock!
Hello, the latest version(v0.4.5) has been released. If you have any request, just tell us. :-)
For some validation libraries in React is mandatory to have a name attribute. It would be nice to be able to add a prop
name
to the