Ben Lin
2024-06-26 af10c85c8f71ccdf2f60989a067804dd8b3aa667
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
  <PageWrapper title="富文本组件示例">
    <Tinymce v-model="value" @change="handleChange" width="100%" />
  </PageWrapper>
</template>
<script lang="ts" setup>
  import { ref } from 'vue';
  import { Tinymce } from '@/components/Tinymce';
  import { PageWrapper } from '@/components/Page';
 
  const value = ref('hello world!');
  function handleChange(value: string) {
    console.log(value);
  }
</script>