1.0.4 • Published 3 years ago
nuxt-editorjs v1.0.4
nuxt-editorjs
Nuxt3 components for @editorjs/editorjs.
Installation
- Run
yarn add nuxt-editorjsto install from NPM. - Add the module to your
nuxt.config.tsfile 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
yarnto install required dependencies. - Run
yarn dev:prepareto generate type stubs. - Use
yarn devto start playground in development mode. - Use
yarn prepackto 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?