@caeher/nuxt-ckeditor5
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

CKEditor5 for Nuxt 3

This module makes use of the official ckeditor component for vuejs, you can check here

Setup

npm i @caeher/nuxt-ckeditor5

Add an alias and module in nuxt.config

export default defineNuxtModule<ModuleOptions>({
  alias: {
    '@caeher/build-ckeditor': '@caeher/build-ckeditor/dist/caeher.js',
    '@ckeditor/ckeditor5-vue': '@ckeditor/ckeditor5-vue/dist/ckeditor.js'
  },
  modules: [
    '@caeher/nuxt-ckeditor5'
  ],
  // setting
  ckeditor: {
    // disabledModule: true, // Disable module module
    height: 500, // Height for editor content
    // disabled: true, // Disable editor
    config: {
      // You can review the settings of each plugin for free: https://ckeditor.com/docs/ckeditor5/latest/features/index.html
    }
  }
})

Adding the configuration completely resets the default one, so you need to make sure to use free ckeditor5 plugins

Usage

<CaeherEditor v-model="data" />

Contributing

  • Clone this repository https://github.com/caeher/nuxt-ckeditor5
  • Install dependencies using yarn install or npm install
  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Readme

Keywords

Package Sidebar

Install

npm i @caeher/nuxt-ckeditor5

Weekly Downloads

12

Version

1.0.10

License

MIT

Unpacked Size

5.34 kB

Total Files

8

Last publish

Collaborators

  • caeher