小智 0
您应该使用文本更改事件:
this.quill.on('text-change', (range, oldRange, source) => {
// Returns the leaf Blot at the specified index within the document
let [leaf, offset] = this.quill.getLeaf(range.index); // Experimental API
if(leaf.domNode.nodeName === 'yourBlotTag') {
//Do something
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
185 次 |
最近记录: |