Reputation: 3706
I'm using Quill editor with the ngx-quill NPM package. Everything is working great except that I just can't get the (change) event to fire. Here's the HTML:
<quill-editor (change)="validateChange(field)" [formControlName]="field.id" [id]="field.id"></quill-editor>
The (change)="validateChange(field)" is having no effect.
Thanks for any ideas!!
Upvotes: 1
Views: 5534
Reputation: 53
If the developer doesn't want to use reactiveForms the output event can be captured with:
<quill-editor (**onContentChanged**)="somefunction($event)" ></quill-editor>
Upvotes: -1
Reputation: 136144
In model driven form you could use valueChanges
Observable on your form.
this.formName.valueChanges.subscribe(data => {
console.log('Changed Values', data)
})
Upvotes: 3