--- menu-title: Default integration meta-title: Using CKEditor 5 with Vue.js 3+ rich text editor component from npm | CKEditor 5 Documentation meta-description: Install, integrate, and configure CKEditor 5 using the Vue.js 3+ component with npm. category: vuejs-v3-npm order: 10 modified_at: 2026-09-23 --- # Integrating CKEditor 5 with Vue.js 3+ from npm CKEditor 5 has an official Vue integration that you can use to add a rich text editor to your application. It provides a `` component with two-way data binding through `v-model`. The component works with multiple editor types, including classic and decoupled (document). For the multi-root editor, use the dedicated {@link getting-started/integrations/vue-multiroot-npm multi-root editor component}. This guide will help you install and configure it to use the npm distribution of CKEditor 5. {@snippet getting-started/use-builder} ## Quick start This guide assumes that you already have a Vue project. If you do not have one, see the [Vue documentation](https://vuejs.org/guide/quick-start) to learn how to create it. Start by installing the following packages: `ckeditor5` – contains all open-source plugins and features for CKEditor 5. ```bash npm install ckeditor5 ``` `ckeditor5-premium-features` – contains premium plugins and features for CKEditor 5. Depending on your configuration and chosen plugins, you might not need it. ```bash npm install ckeditor5-premium-features ``` `@ckeditor/ckeditor5-vue` – the [CKEditor 5 WYSIWYG editor component for Vue](https://www.npmjs.com/package/@ckeditor/ckeditor5-vue). ```bash npm install @ckeditor/ckeditor5-vue ``` With these packages installed, create a new Vue component called `Editor.vue`. It will use the `` component to run the editor. The following example shows a single file component with open-source and premium CKEditor 5 plugins. Starting from version 44.0.0, the `licenseKey` property is required to use the editor. If you use a self-hosted editor from npm: * You must either comply with the GPL or * Obtain a license for {@link getting-started/licensing/license-key-and-activation self-hosting distribution}. You can set up [a free trial](https://portal.ckeditor.com/checkout?plan=free) to test the editor and evaluate the self-hosting. ```vue ``` Now, you can import and use the `Editor.vue` component anywhere in your application. ```vue ``` If you use Nuxt.js with server-side rendering enabled, remember to wrap the `` component in the `` component to avoid issues with the editor calling browser-specific APIs on the server. ```vue ``` ## Component directives ### `editor` This directive specifies the editor to be used by the component. It must directly reference the editor constructor to be used in the template. ```vue ``` ### `tag-name` The `tag-name` directive is deprecated in favor of `config.root.element` (or `config.roots.main.element`). The new configuration option lets you customize the tag name, classes, inline styles, and HTML attributes of the editable element. See the [Using an inline editor](#using-an-inline-editor) section below for details. By default, the editor component creates a `
` container which is used as an element passed to the editor (for example, {@link module:editor-classic/classiceditorui~ClassicEditorUI#element `ClassicEditor#element`}). The element can be configured, so for example to create a `