@qht/editor
富文本编辑器
1,360
| Install | |
|---|---|
npm install @qht/editor |
|
| Latest Version: | 0.0.1-beta.47 |
| Vue: | 2 |
| Last Updated: | Dec 30, 2021 |
| Links: | npm |
Maintainer: skylarblue
安装
npm install @hb/hb-editor -s
开始
<template>
<div id="hdf-editor"></div>
</template>
<script>
import HdfEditor from '@hb/hb-editor'
let editor
export default {
mounted() {
editor = new HdfEditor('#hdf-editor')
}
}
</script>
配置 同quill
我们自己的配置
userId: number // 用户id
userType: string // 用户类型,默认值是 "user", 也可以是药企用户之类的
hostType: string // 业务类型, 默认值是 "doctor"(医生圈),也可以是 "health"(健康号)
env: string // 编辑器宿主环境,默认值是 "web", 也可以是"app"
事件
// 监听编辑器内部的抛错
editor.on('error', function(err) {
// 处理错误逻辑
})
Related Packages
quill-image-drop-and-paste
A quill editor module for drop and paste image, with a callback hook before inse...
2,019,937
115
Version History
Pre-releases (45)
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.1-beta.47 | ^2.6.12 | ||
| 0.0.1-beta.46 | ^2.6.12 | ||
| 0.0.1-beta.45 | ^2.6.12 | ||
| 0.0.1-beta.44 | ^2.6.12 | ||
| 0.0.1-beta.43 | ^2.6.12 | ||
| 0.0.1-beta.42 | ^2.6.12 | ||
| 0.0.1-beta.41 | ^2.6.12 | ||
| 0.0.1-beta.40 | ^2.6.12 | ||
| 0.0.1-beta.37 | ^2.6.12 | ||
| 0.0.1-beta.36 | ^2.6.12 | ||
| 0.0.1-beta.35 | ^2.6.12 | ||
| 0.0.1-beta.34 | ^2.6.12 | ||
| 0.0.1-beta.33 | ^2.6.12 | ||
| 0.0.1-beta.32 | ^2.6.12 | ||
| 0.0.1-beta.31 | ^2.6.12 | ||
| 0.0.1-beta.30 | ^2.6.12 | ||
| 0.0.1-beta.29 | ^2.6.12 | ||
| 0.0.1-beta.28 | ^2.6.12 | ||
| 0.0.1-beta.27 | ^2.6.12 | ||
| 0.0.1-beta.26 | ^2.6.12 | ||
| 0.0.1-beta.25 | ^2.6.12 | ||
| 0.0.1-beta.24 | ^2.6.12 | ||
| 0.0.1-beta.23 | ^2.6.12 | ||
| 0.0.1-beta.22 | ^2.6.12 | ||
| 0.0.1-beta.21 | ^2.6.12 | ||
| 0.0.1-beta.19 | ^2.6.12 | ||
| 0.0.1-beta.18 | ^2.6.12 | ||
| 0.0.1-beta.17 | ^2.6.12 | ||
| 0.0.1-beta.16 | ^2.6.12 | ||
| 0.0.1-beta.15 | ^2.6.12 |
Showing the latest 30 of 45. See every release on npm