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 |
false |
null |
The name of the textarea |
content | String |
false |
'' |
Default content |
autosave | Boolean |
false |
false |
If it should autosave |
autosaveSwitchVisible | Boolean |
false |
true |
If the autosave switch should be shown in the bottom part of the editor |
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 |