0.1.4 • Published 5 years ago

vue-quill-textarea v0.1.4

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

vue-quill-textarea

A rich-text editor based on quill.js and vue.

Install

npm install vue-quill-textarea --save
# or
yarn add vue-quill-textarea

Uaage

<template>
  <div id="app">
    <VueQuillEditor
      v-model="content"
      action="http://www.yourwebsite.com/upload/images"
      :headers="{ token: 'some-auth-token' }">
      :container="container"
    </VueQuillEditor>
  </div>
</template>

<script>
import VueQuillEditor from 'vue-quill-textarea';

export default {
  name: 'your-component-name',
  components: {
    VueQuillEditor,
  },
  data () {
    return {
      content: '',
      container: [
        ['bold', 'italic', 'underline', 'strike'],
      ],
    }
  },
}
</script>

Props

propmeaning
valuev-model
containerQuill toolbar container
actionThe image upload url.
nameThe file key in formData
headersImage upload header
formDataExtra formData
sizeThe file upload limit
placeholderEditor placeholder

Events

  • input
  • change
  • blur
  • focus
  • uploadStart
  • uploadEnd
  • uploadError
  • uploadSuccess
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago