appApplet/pagesB/custom-editor/custom-editor.vue

37 lines
568 B
Vue

<template>
<view>
<status-container titlet="富文本编辑">
<view slot="content">
<custom-editor @getContents="getContents"></custom-editor>
</view>
</status-container>
</view>
</template>
<script>
import customEditor from '@/components/editor/custom-editor.vue';
export default {
components:{
'custom-editor':customEditor
},
data() {
return {
}
},
methods: {
// 失去焦点时,获取富文本的内容
getContents(html){
console.log(html,89);
},
},
onLoad() {
},
}
</script>
<style>
</style>