Quill editor not firing (change) event in Angular

2019-08-26 02:43发布

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!!

1条回答
老娘就宠你
2楼-- · 2019-08-26 03:14

In model driven form you could use valueChanges Observable on your form.

this.formName.valueChanges.subscribe(data => {
   console.log('Changed Values', data)
})
查看更多
登录 后发表回答