Quill editor not firing (change) event in Angular

牧云@^-^@ 提交于 2019-12-11 14:55:09

问题


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:


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

this.formName.valueChanges.subscribe(data => {
   console.log('Changed Values', data)
})


来源:https://stackoverflow.com/questions/47290099/quill-editor-not-firing-change-event-in-angular

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!