vue-markdown-editor
A Vue.js markdown editor component.
Usage
Install
npm install vue-markdown-editor
Dependencies
// Vue library // vue-validatorVue // vue-transfer-domVue
vue-markdown-editor
JavaScript (ES6):
// load styling // load component // vue root instance example el: '#app' { return content: null validator: null markedOptions: { return value } } methods: { if thisvalidatorvalid // do stuff } components: MarkdownEditor
Template:
Content {{ msg }} Save
Build
You can easily build vue-markdown-editor yourself.
Prerequisites
Our build tool of choice is Webpack. You should have webpack installed globally:
npm install -g webpack
And the build dependencies:
npm install
Build
Any of the following will create the files dist/vue-markdown-editor.js and dist/vue-markdown-editor.css.
Production build
Includes minification and several optimizations:
npm run build
Development build
A faster build suited for development, with no optimizations and without minification:
npm run build-dev
Watch
Start an initial development build and then FAST continuous incremental builds:
npm run dev