https://github.com/view-design/iview-editor
https://github.com/view-design/iview-editor
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/view-design/iview-editor
- Owner: view-design
- License: mit
- Created: 2019-09-04T02:55:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T00:42:28.000Z (over 3 years ago)
- Last Synced: 2025-01-16T13:18:09.437Z (over 1 year ago)
- Language: Vue
- Size: 896 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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: ''
}
})
```