refactor: ♻️ 使用 wangeditor-next 替换 wangeditor ,重构简化富文本编辑器组件的封装

This commit is contained in:
ray committed 2025-01-22 12:48:12 +08:00
1 parent f4380d56a3
commit b375352c22
4 files changed
+61 -50

No files matched your search

+7 -3
View File
@@ -1,8 +1,8 @@
<!-- wangEditor富文本编辑器示例 -->
<script setup lang="ts">
import Editor from "@/components/WangEditor/index.vue";
import WangEditor from "@/components/WangEditor/index.vue";
const value = ref("初始内容");
const value = ref("初始化内容");
</script>
<template>
@@ -15,6 +15,10 @@ const value = ref("初始内容");
>
示例源码 请点击>>>>
</el-link>
<editor v-model="value" style="z-index: 99999; height: calc(100vh - 180px)" />
<WangEditor v-model="value" height="400px" />
<div style="margin-top: 10px">
<textarea v-model="value" readonly style="width: 100%; height: 200px; outline: none" />
</div>
</div>
</template>