vue-editor-js
vue-editor-js is editorjs wrapper component.
Please see this first. https://editorjs.io/
For before 1.0.0 version users.
Please Vue.use
vue-editor-js in main.js.
Supported Plugins
Installation
npm install --save vue-editor-js
yarn add vue-editor-js
Usage
import Editor from 'vue-editor-js'
Vue.use(Editor)
plugins: [
{
src: '~/plugins/vue-editor.js', ssr: false
}
],
import Vue from 'vue'
import Editor from 'vue-editor-js'
Vue.use(Editor)
<editor
autofocus
holder-id="codex-editor"
save-button-id="save-button"
:init-data="initData"
@save="save"
@ready="onReady"
@change="onChange"
/>
If you confused using on Nuxt, please see here
Other props:
- customTools - Object with name (key) and class of a custom tool (value)
Enjoy editorjs with Vue.js Project :tada:
How to Contribute?
- fork this project.
- edit code.
- PR
OR
Contributors