w-quill-vue
v2.0.6
Published
A wrapper for vue-quill-editor.
Downloads
35
Maintainers
Readme
w-quill-vue
A wrapper for vue-quill-editor.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
default: ex-default.html [source code]
Installation
Using npm(ES6 module):
Note: w-quill-vue is mainly dependent on
quill
,vue-quill-editor
andvue
.
npm i w-quill-vue
By import:
<w-quill-vue
v-model="..."
></w-quill-vue>
import WQuillVue from 'w-quill-vue'
Vue.component('w-quill-vue', WQuillVue)
In a browser(UMD module):
Note: umd file includes with
vue-quill-editor
, by using tree-shaking for dead-code elimination
[Necessary] Add script for quill.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.snow.min.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.min.js"></script>
[Necessary] Add script for vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
[Necessary] Add script for w-quill-vue.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/w-quill-vue.umd.js"></script>
Directly use:
<w-quill-vue
v-model="..."
></w-quill-vue>
Vue.component('w-quill-vue', window['w-quill-vue'])
new Vue({
el: '#app',
data: {
content: 'abc中文123'
}
})