https://github.com/kscript/customevent
给 quill 富文本编辑器 添加自定义事件
https://github.com/kscript/customevent
event quill
Last synced: 5 months ago
JSON representation
给 quill 富文本编辑器 添加自定义事件
- Host: GitHub
- URL: https://github.com/kscript/customevent
- Owner: kscript
- Created: 2019-02-27T09:53:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T10:45:39.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T21:44:56.405Z (about 1 year ago)
- Topics: event, quill
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 => {
// ...
}
}]
}
}
}
}
}
}
```