A Vue and Bulma specific package for adding a markdown editor with preview.
Pull it in to your package.json file
npm install vue-bulma-markdown-editor --save
or
yarn add vue-bulma-markdown-editor
import { MarkdownEditor } from 'vue-bulma-markdown-editor'
Vue.component('markdown-editor', MarkdownEditor)
name | type | required | default | description |
---|---|---|---|---|
name | String |
true |
null |
The name of the textarea |
content | String |
false |
'' |
Default content |
autosave | Boolean |
false |
false |
If it should autosave |
autosaveUrl | String |
false |
null |
The url endpoint to autosave |
autosaveMethod | String |
false |
patch |
The rest verb for submitting the request |
options | Object |
false |
{ html: true, linkify: true, breaks: true } |
Options to pass to markdown-it . See more at markdown-it documentation |