A medium-editor component for Vue2. For Vue1 checkout branch 1.0.
# bash
npm i --save vue2-medium-editor
# app.js
import editor from 'vue2-medium-editor'
import Vue from 'vue'
new Vue {
...
components: {
'medium-editor': editor
}
}
# index.html
<medium-editor :text='myText' :options='{ disableReturn: false }' custom-tag='h2' v-on:edit='applyTextEdit'>
You can pass all options available from here: https://github.com/yabwe/medium-editor/blob/master/OPTIONS.md
Make sure you include the required CSS.
- Create plugin for configuring options