1 | # gaea-editor-vue
|
2 |
|
3 | ## demo
|
4 | > [demo](https://charlielau.github.io/gaea-editor-vue)
|
5 |
|
6 | ## Installation
|
7 |
|
8 | Install with yarn:
|
9 |
|
10 | ```sh
|
11 | $ yarn add gaea-editor-vue
|
12 | # or with npm:
|
13 | $ npm install gaea-editor-vue
|
14 | ```
|
15 |
|
16 | ## Usage:
|
17 |
|
18 | Main.js:
|
19 |
|
20 | ```javascript
|
21 | //依赖vuex
|
22 | import store from './store/index';
|
23 | import GaeaEditor from 'gaea-editor-vue';
|
24 |
|
25 | Vue.use(GaeaEditor, {store});
|
26 |
|
27 | ```
|
28 |
|
29 | component.vue:
|
30 |
|
31 | ```vue
|
32 | <template>
|
33 | <div id="app">
|
34 | <gaea-editor style="height:600px" />
|
35 | </div>
|
36 | </template>
|
37 | <script>
|
38 | </script>
|
39 |
|
40 | <style>
|
41 | </style>
|
42 | ```
|
43 | ## 扩展开发
|
44 |
|
45 | ```sh
|
46 | $ yarn run build
|
47 | ```
|
48 |
|
49 | ## Refrence
|
50 |
|
51 | > [gaea-editor](https://github.com/ascoders/gaea-editor)
|