https://github.com/ddvjs/ddv-wangeditor
ddv-wangeditor a vue component based on the wangeditor package
https://github.com/ddvjs/ddv-wangeditor
ddv editor wangeditor
Last synced: 4 months ago
JSON representation
ddv-wangeditor a vue component based on the wangeditor package
- Host: GitHub
- URL: https://github.com/ddvjs/ddv-wangeditor
- Owner: ddvjs
- Created: 2017-03-09T09:10:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T06:59:35.000Z (about 9 years ago)
- Last Synced: 2025-10-06T01:59:51.309Z (8 months ago)
- Topics: ddv, editor, wangeditor
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ddv-wangeditor
>这是一个基于[wangEditor](https://github.com/wangfupeng1988/wangEditor)的富文本编辑器
>支持[vue](https://github.com/vuejs/vue)2.0版本
## 安装
**npm:**
```shell
$ npm install ddv-wangeditor
```
**引入:**
```javascript
// import with ES6
import Vue from 'vue'
import ddvWangeditor from 'ddv-wangeditor'
// use
Vue.use(ddvWangeditor)
// or use with component(ES6)
import Vue from 'vue'
import { ddvWangeditor } from 'ddv-wangeditor'
// use
export default {
components: {
ddvWangeditor
}
}
//使用
export default {
data () {
//输入内容到编辑器
inputContent: 'asdsad',
//从编辑器输出的内容
outputContent: 'asdsad',
//编辑器工具栏配置,可选,默认全部
menus:[]
},
methods: {
//自定义图片上传模块
httpRequest(options){
}
}
}
```