羽毛笔编辑器未在Angular中触发(更改)事件 [英] Quill editor not firing (change) event in Angular

查看:116
本文介绍了羽毛笔编辑器未在Angular中触发(更改)事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有ngx-quill NPM软件包的Quill编辑器.除了无法启动(change)事件外,其他所有功能都运作良好.这是HTML:

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>

(更改)=​​ validateChange(field)"无效.

The (change)="validateChange(field)" is having no effect.

感谢任何想法!

推荐答案

在模型驱动的表单中,您可以在表单上使用valueChanges Observable.

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

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

这篇关于羽毛笔编辑器未在Angular中触发(更改)事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆