nuxt-editorjs

1,788
Install
npm install nuxt-editorjs
Latest Version:1.0.4
Vue:3
License:MIT
Last Updated:Aug 12, 2022
Links: npm
Maintainer: wantpinow

nuxt-editorjs

Npm package version MIT license

Nuxt3 components for @editorjs/editorjs.

Installation

  • Run yarn add nuxt-editorjs to install from NPM.
  • Add the module to your nuxt.config.ts file and optimise with vite:
export default defineNuxtConfig({
  ...
  modules: ["nuxt-editorjs"],
  vite: {
    optimizeDeps: {
      include: ["@editorjs/editorjs"],
    },
  },
  ...
});

Usage

  • We expose a single <editor-js /> component.

Development

  • Run yarn to install required dependencies.
  • Run yarn dev:prepare to generate type stubs.
  • Use yarn dev to start playground in development mode.
  • Use yarn prepack to build the module.

Todo

  • Add more Editor.js modules (Header, List, ...)
  • Add the ability to use custom Editor.js modules
  • Add preview component (using EditorJS -> HTML package)
  • Add custom styling (override standard CSS)
  • Why is <client-only> needed?</client> to render a v-model?

Version History

Version Released Vue License
1.0.4 ^3.0 MIT
1.0.3 ^3.0 MIT
1.0.2 ^3.0 MIT
1.0.1 ^3.0 MIT
0.0.1 ^3.0 MIT