CKEditor 4 Vue Component

3.2.1 · maintenance · verified Sun Apr 19

ckeditor4-vue provides an official Vue.js 2 component for integrating the CKEditor 4 WYSIWYG editor into web applications. As of version 3.x (including the current 3.2.1), this package is part of the commercial CKEditor 4 LTS (Long Term Support) offering. The underlying CKEditor 4 editor reached its End of Life (EOL) for open-source users on June 30, 2023. Open-source versions of this Vue component (2.4.0 and below) no longer receive security updates or bug fixes, posing significant risks. The commercial LTS model extends security updates and critical bug fixes for CKEditor 4 until December 2028. This package simplifies the integration of CKEditor 4 into Vue 2 projects by providing a declarative component, differentiating it from manual integration methods.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install the CKEditor 4 Vue component, register it as a Vue plugin, and use it within a basic Vue instance to display and update rich text content.

import Vue from 'vue';
import CKEditor from 'ckeditor4-vue';

Vue.use( CKEditor );

new Vue({
  el: '#app',
  template: `
    <div id="app">
      <ckeditor :value="editorContent" @input="updateEditorContent"></ckeditor>
    </div>
  `,
  data: {
    editorContent: 'Hello, World!'
  },
  methods: {
    updateEditorContent(event) {
      this.editorContent = event;
      console.log('Editor content updated:', this.editorContent);
    }
  }
});

view raw JSON →