vue2-prosemirror-markdown
Plugin to integrate prosemirror with Vue 2
Usage
Vue // eslint-disable-line no-new el: '#app'
This installs the component, which can be used as...
parameter | values |
---|---|
textareaConfig |
{name: 'a-string'} (required) |
mode |
all , editor (default), markdown |
initialMarkdown |
binding :initialMarkdown="someVar" , as string: initialMarkdown="**text**" |
customClass |
'vue-prosemirror' (default) |
Events
event name | called with these arguments |
---|---|
contentChange |
(val, oldVal) , both are Objects: {editor: Node, markdown: String} |
contentChangeMarkdown |
(markdown: String) |
modeChange |
(val: String, oldVal: String) |
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# lint all *.js and *.vue filesnpm run lint# run unit testsnpm test
For more information see the docs for vueify.