Skip to content

changjunhao/vue-editorjs

Repository files navigation

vue-editorjs

vue-editorjs is editorjs wrapper component.

Please see this first. https://editorjs.io/

Only supports Vue3, Vue2 please check the branch vue2

Installation

npm install --save @junhao/vue-editorjs

# or Yarn
yarn add @junhao/vue-editorjs

Usage

// In main.js
// ...
import { createApp } from 'vue'
import App from './app.vue'
import Editor from '@junhao/vue-editorjs'

createApp(App).use(Editor).mount('#app')
// ...
// In component
// ...
import { Editor } from '@junhao/vue-editorjs'

export default {
  components: {
    Editor,
  }
}
// ...
// Support all configuration items of editorjs, which can be passed individually or converged with config props, config has the highest priority.
  <vue-editorjs
    ref="editor"
    :config="config"
    :data="initData"
    :tools="tools"
    @save="onSave"
    @ready="onReady"
    @change="onChange"
  />

Please see demo for specific usage

About

Editor js wrapping component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published