quill-vue-mobile

1.1.3 • Public • Published

quill-vue-mobile

一个 quill 的封装,用于移动端 webview 的跨平台富文本编辑器,类似知乎移动端富文本

preview

Project setup

npm install quill-vue-mobile

usage

<template>
  <quill-vue-mobile
    :defaultValue="{ title: '我是默认标题', content: '我是默认内容' }"
    ref="editor"
    @upload-img="uploadImg"
    @title-change="titleChange"
    @content-change="contentChange"
  />
</template>
 
<script>
export default {
  data() {
    return {
      title: '',
    }
  },
  methods: {
    uploadImg() {
      this.$refs.editor.renderImg(
        'https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top-e3b63a0b1b.png'
      )
    },
    contentChange(w) {
      console.log('TCL: contentChange -> w', w)
    },
    titleChange(w) {
      console.log('TCL: titleChange -> w', w)
    },
  },
}
</script>
 
<style scoped></style>

/quill-vue-mobile/

    Package Sidebar

    Install

    npm i quill-vue-mobile

    Weekly Downloads

    1

    Version

    1.1.3

    License

    none

    Unpacked Size

    4.06 MB

    Total Files

    25

    Last publish

    Collaborators

    • artiely