fix: 修复文件编码问题

This commit is contained in:
Ray.Hao
2026-01-29 10:35:53 +08:00
parent 6ff4a65ec9
commit da7163f463
23 changed files with 279 additions and 128 deletions

View File

@@ -1,23 +1,23 @@
<!--
* 基于 wangEditor-next 的富文本编辑器组ä»äºŒæ¬¡å°<EFBFBD>è£?
* 版æ<EFBFBD>ƒæ‰€æœ?© 2021-present 有æ<EFBFBD>¥å¼€æº<EFBFBD>组ç»?
* 基于 wangEditor-next 的富文本编辑器组件二次封装
* 版权所属 © 2021-present 有来开源组织
*
* 开源协议:https://opensource.org/licenses/MIT
* 项目地址:https://gitee.com/youlaiorg/vue3-element-admin
*
* 在使用æ—,请ä¿<EFBFBD>留此注释,感谢您对开æº<EFBFBD>的支æŒ<EFBFBD>ï¼?
* 在使用时,请保留此注释,感谢您对开源的支持
-->
<template>
<div style="z-index: 999; border: 1px solid var(--el-border-color)">
<!-- 工具�-->
<!-- 工具栏 -->
<Toolbar
:editor="editorRef"
mode="simple"
:default-config="toolbarConfig"
style="border-bottom: 1px solid var(--el-border-color)"
/>
<!-- 编辑�-->
<!-- 编辑器 -->
<Editor
v-model="modelValue"
:style="{ height: height, overflowY: 'hidden' }"
@@ -51,15 +51,15 @@ const modelValue = defineModel("modelValue", {
required: false,
});
// 编辑器实例,必须ç”?shallowRef,é‡<C3A9>è¦<C3A8>ï¼<C3AF>
// 编辑器实例,必须用 shallowRef,重要!
const editorRef = shallowRef();
// 工具æ <EFBFBD>é…<EFBFBD>ç½?
// 工具栏配置
const toolbarConfig = ref<Partial<IToolbarConfig>>({});
// 编辑器é…<EFBFBD>ç½?
// 编辑器配置
const editorConfig = ref<Partial<IEditorConfig>>({
placeholder: "请输入内�..",
placeholder: "请输入内容..",
MENU_CONF: {
uploadImage: {
customUpload(file: File, insertFn: InsertFnType) {