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

37 lines
568 B
Vue
Raw Normal View History

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