horul-editor

0.1.0 • Public • Published

horul-editor

horul-editor is editorjs wrapper component.

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

Supported Plugins

Installation

npm install --save horul-editor
 
# or Yarn 
yarn add horul-editor

Usage

// In main.js
// ...
import Editor from 'horul-editor'
 
Vue.use(Editor)
// ...
// In component
// ...
import { Editor } from 'horul-editor'
 
export default {
  components: {
    Editor,
  }
}
// ...
  <editor
    autofocus
    holder-id="codex-editor"
    save-button-id="save-button"
    :init-data="initData"
    @save="save"
    @ready="onReady"
    @change="onChange"
  />

// on Nuxt.js
 
// in nuxt.config.js
plugins: [
  {
    src: '~/plugins/vue-editor.js', ssr: false
  }
],
 
// in ~/plugins/vue-editor.js
import Vue from 'vue'
import Editor from 'horul-editor'
 
Vue.use(Editor)
 
// in your page
<editor />
 

Other props:

  • customTools - Object with name (key) and class of a custom tool (value)

Package Sidebar

Install

npm i horul-editor

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

19.1 kB

Total Files

11

Last publish

Collaborators

  • omegion-org