Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/iview/iview-editor

iView Editor
https://github.com/iview/iview-editor

Last synced: 27 days ago
JSON representation

iView Editor

Lists

README

        

# iView Editor
[http://editor.iviewui.com](http://editor.iviewui.com)
> iView Editor 是基于 iView 的 markdown 编辑器,支持上传图片(可集成七牛等服务),支持全屏实时编辑预览。
## 如何使用
### 通过 npm 安装

```
npm install iview-editor --save
```
在 webpack 中使用插件,部分代码省略:
``` js
import Vue from 'vue';
import iView from 'iview';
import iEditor from 'iview-editor';

// 使用 css
import 'iview/dist/styles/iview.css';
import 'iview-editor/dist/i-editor.css';

// 使用插件
Vue.use(iView);
Vue.use(iEditor);
```

在 .vue 中使用:
``` html

export default {
data () {
return {
content: ''
}
}
}

```

### 通过 CDN 使用
``` html



iView Editor











new Vue({
el: '#app',
data: {
content: ''
}
})

```