tiny-vue/examples/sites/demos/pc/app/rich-text-editor/options-usage-composition-a...

15 lines
340 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<tiny-rich-text-editor :options="options"></tiny-rich-text-editor>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { RichTextEditor as TinyRichTextEditor } from '@opentiny/vue'
const options = ref({
content: '自定义options覆盖默认options',
autofocus: true,
editable: true,
})
</script>