A VueJS plugin for medium-editor
npm install vue2-medium-editor
``bash`
#bash
npm i --save vue2-medium-editor
javascript
//app.js
import editor from 'vue2-medium-editor'
import Vue from 'vue'new Vue {
...
components: {
'medium-editor': editor
}
}
`
`vue
`> Full usage example at github.com/FranzSkuffka/vue-medium-editor/tree/gh-pages
A list of available options can be found in the documentation of MediumEditor.
Optionally you may use the standalone builds from
dist which have medium-editor.js included.> Make sure you include the required CSS.
$3
To create extensions for the MediumEditor you will need the original MediumEditor object, which
you can get like this:`javascript
var HighlightButton = VueMediumEditor.MediumEditor.Extension.extend({
// ...
});
`See Extensions
section of the MediumEditor's wiki for details.
Bundling & Minification
To generate the standalone bundle
`bash
npm i --save-dev
npm run prepublish
``- gcoda
- seguer
- DannyFeliz
- okneloper
- dmattia
Anyone else who opened an Issue or PR!
Thank you! :tada: