@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

vue3-quill

Quill editor for vue3

341,257 58
vue-quill-component

A Vue.js component for a Quill editor

1,268 0
quill-image-drop-and-paste

A quill editor module for drop and paste image, with a callback hook before inse...

2,019,937 115
vue-bulma-quill

Your powerful, rich text editor for Vue

11,507 32
@ohgeorgie/vuequill

Vue 3 package for Quill 2.0.0. Forked from vueup/vue-quill

2,838 3

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