An open API service indexing awesome lists of open source software.

https://github.com/kscript/customevent

给 quill 富文本编辑器 添加自定义事件
https://github.com/kscript/customevent

event quill

Last synced: 5 months ago
JSON representation

给 quill 富文本编辑器 添加自定义事件

Awesome Lists containing this project

README

          

### customEvent
给 quill 富文本编辑器 添加自定义事件

### 使用方法
vue单文件组件
``` vue

import Quill from 'quill'
import CustomEvent from './CustomEvent';
Quill.register('modules/customEvent', CustomEvent);

export default {
data () {
return {
options: {
modules: {
customEvent: {
events: [{
name: 'click',
handler: event => {
// ...
}
}]
}
}
}
}
}
}

```