Merge branch 'feature/hole' into release/3.1
Showing
1 changed file
with
3 additions
and
6 deletions
1 | <template> | 1 | <template> |
2 | - <editor :content="value" @change="change"></editor> | 2 | + <editor v-bind="$attrs" v-on="$listeners"></editor> |
3 | </template> | 3 | </template> |
4 | 4 | ||
5 | <script> | 5 | <script> |
@@ -7,11 +7,8 @@ import xss from 'util/xss'; | @@ -7,11 +7,8 @@ import xss from 'util/xss'; | ||
7 | 7 | ||
8 | export default { | 8 | export default { |
9 | name: 'editor-safe', | 9 | name: 'editor-safe', |
10 | - props: ['content'], | ||
11 | - data() { | ||
12 | - return { | ||
13 | - value: this.content | ||
14 | - }; | 10 | + created() { |
11 | + this.$listeners.change = this.change; | ||
15 | }, | 12 | }, |
16 | methods: { | 13 | methods: { |
17 | change(val) { | 14 | change(val) { |
-
Please register or login to post a comment