feat: 移植TinyMCe组件

This commit is contained in:
dap
2024-08-20 10:17:48 +08:00
parent 1c6c9745d8
commit 6c43d818a0
136 changed files with 7781 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<script setup lang="ts">
import { ref } from 'vue';
import { Page } from '@vben/common-ui';
import { Tinymce } from '#/components/Tinymce';
const readonly = ref(false);
const content = ref('');
</script>
<template>
<Page title="Tinymce富文本">
<div class="flex flex-col gap-[16px]">
<div class="flex items-center gap-[16px]">
<span>只读</span>
<a-switch v-model:checked="readonly" />
</div>
<Tinymce v-model:value="content" :options="{ readonly }" />
</div>
</Page>
</template>