vue-ckeditor2
Ckeditor 4 using with Vue.js
92,197
167
| Install | |
|---|---|
npm install vue-ckeditor2 |
|
| Latest Version: | 2.1.5 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jul 1, 2024 |
| Links: | GitHub · npm |
Maintainer: dangvanthanh
vue-ckeditor
Ckeditor using for Vue.js 2

Requirements
Install
CDN
<script src="https://unpkg.com/vue-ckeditor2"></script>
NPM
$ npm install vue-ckeditor2 --save
Usage
This document applies to v2.0+. If you are looking for older versions, docs are here
Component
Then in your component:
<template>
<div>
<vue-ckeditor
v-model="content"
:config="config"
@blur="onBlur($event)"
@focus="onFocus($event)"
@contentDom="onContentDom($event)"
@dialogDefinition="onDialogDefinition($event)"
@fileUploadRequest="onFileUploadRequest($event)"
@fileUploadResponse="onFileUploadResponse($event)" />
</div>
</template>
<script>
import VueCkeditor from 'vue-ckeditor2';
export default {
components: { VueCkeditor },
data() {
return {
content: '',
config: {
toolbar: [
['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript']
],
height: 300
}
};
},
methods: {
onBlur(evt) {
console.log(evt);
},
onFocus(evt) {
console.log(evt);
},
onContentDom(evt) {
console.log(evt);
},
onDialogDefinition(evt) {
console.log(evt);
},
onFileUploadRequest(evt) {
console.log(evt);
},
onFileUploadResponse(evt) {
console.log(evt);
}
}
};
</script>
Props
| 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 |
Events
| 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 |
Build Setup
You can use vue-cli with vue-rollup-boilerplate templates or other vue templates
Created By
Thanks to:
- Eduárd Moldován
- Dominique FERET
- comfuture
- 旺旺
- Tony Yip
- Nedyalko Dyakov
- Bryan Miller
- Jeff Omiecinski
- rlfscin
- Renato Souza
- Fernando Morgenstern
- Christoph-Wagner
- Patrick Davey
- Michali Sarris
License
MIT © Dang Van Thanh
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 2.1.5 | MIT | |
| 2.1.4 | MIT | |
| 2.1.3 | MIT | |
| 2.1.2 | MIT | |
| 2.1.1 | MIT | |
| 2.1.0 | MIT | |
| 2.0.10 | MIT | |
| 2.0.9 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT | |
| 2.0.5 | MIT | |
| 2.0.4 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.26.0 | MIT | |
| 1.25.0 | MIT | |
| 1.24.0 | MIT | |
| 1.23.0 | MIT | |
| 1.22.0 | MIT | |
| 1.21.0 | MIT | |
| 1.20.0 | MIT | |
| 1.19.0 | MIT | |
| 1.18.0 | MIT | |
| 1.17.0 | MIT | |
| 1.16.0 | MIT | |
| 1.15.0 | MIT | |
| 1.14.0 | MIT |
Showing the latest 30 of 43. See every release on npm