Package Exports
- vue-markdown-editor-hsfy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-markdown-editor-hsfy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue Editor
Demo
Install
npm install vue-md-editor --saveor
<script src="https://unpkg.com/vue-md-editor/dist/vue-editor.min.js"></script>Usage
// main.js
import Vue from 'vue'
import VueEditor from 'vue-md-editor'
Vue.use(VueEditor)
new Vue({
el: '#app',
data: {},
...
})<!--index.html-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>VueEditor example</title>
</head>
<body>
<div id="app">
<vue-editor v-model="value"></vue-editor>
</div>
</body>
</html>Dependencies
- marked
- highlight.js
- If you want's to use highlight.js style.
Keyboards
| Markdown | Result | Shortcut |
|---|---|---|
| **text** | text | Ctrl + B |
| _text_ | text | Ctrl + I |
| ### text | Heading | Ctrl + H |
| ~~text~~ | Ctrl + D | |
| - text | List | Ctrl + U |
| 1. text | List | Ctrl + O |
| [Demo](http://vue-editor.beblog.cn) | Demo | Ctrl + A |
|  | Image | Ctrl + P |
| `text` | text |
Ctrl + C |
| > text | Blockquote | Ctrl + Q |
Issues
修复 Issue #5