Closed Omar-ABDELNABY closed 4 years ago
Any update on this?
Hi @Omar-ABDELNABY thanks for reporting 👍 . Typescript definition file was not updated.
Correct syntax is this.editor.$on('change', (event) => console.log(event))
.
Fixed in v2.1.0.
I've also updated Readme.md.
I'm trying to wrap this into an angular component to use it in an angular project I can't find a way to listen to change event, I followed the readme.md with something like this:
editor.on('change', (html) => console.log(html));
editor.$on('change', (html) => console.log(html));
and I got an error Property 'on' does not exist on type 'Editor'