33 lines
461 B
Vue
33 lines
461 B
Vue
|
<template>
|
||
|
<view class="container">
|
||
|
<custom-editor @getContents="getContents"></custom-editor>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import editor from '@/components/editor/editor.vue';
|
||
|
export default {
|
||
|
components:{
|
||
|
'custom-editor':editor
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
// 失去焦点时,获取富文本的内容
|
||
|
getContents(html){
|
||
|
console.log(html,89);
|
||
|
},
|
||
|
},
|
||
|
onLoad() {
|
||
|
|
||
|
},
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
|
||
|
</style>
|