Gathering detailed insights and metrics for vue-quill-editor
Gathering detailed insights and metrics for vue-quill-editor
Gathering detailed insights and metrics for vue-quill-editor
Gathering detailed insights and metrics for vue-quill-editor
npm install vue-quill-editor
Typescript
Module System
Min. Node Version
Node Version
NPM Version
95.7
Supply Chain
99.5
Quality
75.3
Maintenance
50
Vulnerability
100
License
JavaScript (90.73%)
Vue (9.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7,417 Stars
148 Commits
1,027 Forks
107 Watchers
1 Branches
12 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
3.0.6
Package Id
vue-quill-editor@3.0.6
Size
10.44 kB
NPM Version
5.7.1
Node Version
9.0.0
Published on
Apr 09, 2018
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
73
????Quill editor component for Vue, support SPA and SSR.
基于 Quill、适用于 Vue 的富文本编辑器,支持服务端渲染和单页应用。
1<link rel="stylesheet" href="path/to/quill.core.css"/> 2<link rel="stylesheet" href="path/to/quill.snow.css"/> 3<link rel="stylesheet" href="path/to/quill.bubble.css"/> 4<script type="text/javascript" src="path/to/quill.js"></script> 5<script type="text/javascript" src="path/to/vue.min.js"></script> 6<script type="text/javascript" src="path/to/dist/vue-quill-editor.js"></script> 7<script type="text/javascript"> 8 Vue.use(window.VueQuillEditor) 9</script>
1npm install vue-quill-editor --save
1import Vue from 'vue' 2import VueQuillEditor from 'vue-quill-editor' 3 4// require styles 5import 'quill/dist/quill.core.css' 6import 'quill/dist/quill.snow.css' 7import 'quill/dist/quill.bubble.css' 8 9Vue.use(VueQuillEditor, /* { default global options } */)
1// require styles 2import 'quill/dist/quill.core.css' 3import 'quill/dist/quill.snow.css' 4import 'quill/dist/quill.bubble.css' 5 6import { quillEditor } from 'vue-quill-editor' 7 8export default { 9 components: { 10 quillEditor 11 } 12}
1// if used in nuxt.js/ssr, you should keep require it only in browser build environment 2if (process.browser) { 3 const VueQuillEditor = require('vue-quill-editor/dist/ssr') 4 Vue.use(VueQuillEditor, /* { default global options } */) 5}
1// register quill modules, you need to introduce and register before the vue program is instantiated 2import Quill from 'quill' 3import yourQuillModule from '../yourModulePath/yourQuillModule.js' 4Quill.register('modules/yourQuillModule', yourQuillModule)
SSR and the only difference in the use of the SPA:
component
, find quill instance by ref attribute
.directive
, find quill instance by directive arg
.1<!-- You can custom the "myQuillEditor" name used to find the quill instance in current component --> 2<template> 3 <!-- bidirectional data binding(双向数据绑定) --> 4 <div class="quill-editor" 5 v-model="content" 6 v-quill:myQuillEditor="editorOption"> 7 </div> 8 9 <!-- Or manually control the data synchronization(手动控制数据流) --> 10 <div class="quill-editor" 11 :content="content" 12 @change="onEditorChange($event)" 13 v-quill:myQuillEditor="editorOption"> 14 </div> 15</template> 16 17<script> 18 export default { 19 data() { 20 return { 21 content: '<p>example content</p>', 22 editorOption: { /* quill options */ } 23 } 24 }, 25 mounted() { 26 console.log('this is current quill instance object', this.myQuillEditor) 27 }, 28 methods: { 29 onEditorChange(event) { 30 console.log('onEditorChange') 31 } 32 }, 33 // Omit the same parts as in the following component sample code 34 // ... 35 } 36</script>
1<template> 2 <!-- bidirectional data binding(双向数据绑定) --> 3 <quill-editor v-model="content" 4 ref="myQuillEditor" 5 :options="editorOption" 6 @blur="onEditorBlur($event)" 7 @focus="onEditorFocus($event)" 8 @ready="onEditorReady($event)"> 9 </quill-editor> 10 11 <!-- Or manually control the data synchronization(或手动控制数据流) --> 12 <quill-editor :content="content" 13 :options="editorOption" 14 @change="onEditorChange($event)"> 15 </quill-editor> 16</template> 17 18<script> 19 20 // you can also register quill modules in the component 21 import Quill from 'quill' 22 import { someModule } from '../yourModulePath/someQuillModule.js' 23 Quill.register('modules/someModule', someModule) 24 25 export default { 26 data () { 27 return { 28 content: '<h2>I am Example</h2>', 29 editorOption: { 30 // some quill options 31 } 32 } 33 }, 34 // manually control the data synchronization 35 // 如果需要手动控制数据同步,父组件需要显式地处理changed事件 36 methods: { 37 onEditorBlur(quill) { 38 console.log('editor blur!', quill) 39 }, 40 onEditorFocus(quill) { 41 console.log('editor focus!', quill) 42 }, 43 onEditorReady(quill) { 44 console.log('editor ready!', quill) 45 }, 46 onEditorChange({ quill, html, text }) { 47 console.log('editor change!', quill, html, text) 48 this.content = html 49 } 50 }, 51 computed: { 52 editor() { 53 return this.$refs.myQuillEditor.quill 54 } 55 }, 56 mounted() { 57 console.log('this is current quill instance object', this.editor) 58 } 59 } 60</script>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 4/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More