Gathering detailed insights and metrics for vue-ckeditor2
Gathering detailed insights and metrics for vue-ckeditor2
Gathering detailed insights and metrics for vue-ckeditor2
Gathering detailed insights and metrics for vue-ckeditor2
npm install vue-ckeditor2
Typescript
Module System
Node Version
NPM Version
Vue (91.83%)
JavaScript (6.81%)
Shell (1.36%)
Total Downloads
930,192
Last Day
26
Last Week
1,727
Last Month
7,898
Last Year
120,392
MIT License
168 Stars
161 Commits
63 Forks
9 Watchers
4 Branches
14 Contributors
Updated on Apr 02, 2025
Latest Version
2.1.5
Package Id
vue-ckeditor2@2.1.5
Unpacked Size
66.51 kB
Size
33.04 kB
File Count
12
NPM Version
6.7.0
Node Version
11.12.0
Cumulative downloads
Total Downloads
Last Day
0%
26
Compared to previous day
Last Week
-10.6%
1,727
Compared to previous week
Last Month
1.2%
7,898
Compared to previous month
Last Year
-30.7%
120,392
Compared to previous year
6
Ckeditor using for Vue.js 2
1<script src="https://unpkg.com/vue-ckeditor2"></script>
$ npm install vue-ckeditor2 --save
This document applies to v2.0+. If you are looking for older versions, docs are here
Then in your component:
1<template> 2 <div> 3 <vue-ckeditor 4 v-model="content" 5 :config="config" 6 @blur="onBlur($event)" 7 @focus="onFocus($event)" 8 @contentDom="onContentDom($event)" 9 @dialogDefinition="onDialogDefinition($event)" 10 @fileUploadRequest="onFileUploadRequest($event)" 11 @fileUploadResponse="onFileUploadResponse($event)" /> 12 </div> 13</template> 14 15<script> 16import VueCkeditor from 'vue-ckeditor2'; 17 18export default { 19 components: { VueCkeditor }, 20 data() { 21 return { 22 content: '', 23 config: { 24 toolbar: [ 25 ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'] 26 ], 27 height: 300 28 } 29 }; 30 }, 31 methods: { 32 onBlur(evt) { 33 console.log(evt); 34 }, 35 onFocus(evt) { 36 console.log(evt); 37 }, 38 onContentDom(evt) { 39 console.log(evt); 40 }, 41 onDialogDefinition(evt) { 42 console.log(evt); 43 }, 44 onFileUploadRequest(evt) { 45 console.log(evt); 46 }, 47 onFileUploadResponse(evt) { 48 console.log(evt); 49 } 50 } 51}; 52</script>
Name | Type | Description |
---|---|---|
name | String | Name of instance ckedior. **Default: editor- ** |
id | String | Id of instance ckedior. Default: editor-1 |
types | String | Types of ckedior. Default: classic |
config | Object | All configuration of ckeditor. Default: {} |
instanceReadyCallback | Function | Optional function that will be attached to CKEditor instanceReady event. |
readOnlyMode | Boolean | Option setReadOnly editor initializes in the proper mode. Default: false |
Name | Description |
---|---|
blur | Fired when the editor instance loses the input focus. |
focus | Fired when the editor instance receives the input focus. |
contentDom | Event fired when the editor content (its DOM structure) is ready |
dialogDefinition | Event fired when a dialog definition is about to be used to create a dialog into an editor instance |
fileUploadRequest | Event fired when the file loader should send XHR |
fileUploadResponse | Event fired when the file loader response is received and needs to be parsed |
You can use vue-cli with vue-rollup-boilerplate templates or other vue templates
Thanks to:
MIT © Dang Van Thanh
No vulnerabilities found.