<!-- 富文本编辑器 -->
<template>
    <Editor :init="init" />
</template>

<script lang="ts" setup>
import Editor from '@tinymce/tinymce-vue'

defineProps({
    modelValue: {
        type: String,
        default: '',
    },
})

const init = {
    language: 'zh-Hans',
    menubar: false,
    statusbar: false,
    width: '100%',
}
</script>