Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhouqihang/vue-markdown
Markdown editor build for vue
https://github.com/zhouqihang/vue-markdown
javascript vue webpack
Last synced: 3 months ago
JSON representation
Markdown editor build for vue
- Host: GitHub
- URL: https://github.com/zhouqihang/vue-markdown
- Owner: zhouqihang
- Created: 2017-10-13T10:10:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T06:11:18.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T11:06:51.081Z (4 months ago)
- Topics: javascript, vue, webpack
- Language: JavaScript
- Size: 33.2 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-editor-markdown
Markdown editor build for Vue.
# Installation
### npm
```
$ npm install vue-editor-markdown --save
```# Usage
```javascript
import Vue from 'vue';
import VueEditorMarkdown from 'vue-editor-markdown';Vue.use(VueEditorMarkdown);
```
```html```
# props
| prop | type | default | describe |
| ---- | ---- | ------- | -------- |
| showPreview | Boolean | true | enable html preview |
| isPreview | Boolean | false | enable markdown edit |
| isFullScreen | Boolean | false | full screen |
| navColor | String | null | navigation text color |
| backgroundColor | String | null | navigation and markdown editor background color |
| borderColor | String | null | editor border color |
| v-model | Object | {markdown: '', html: ''} | value |