更换编辑器

This commit is contained in:
2026-07-14 15:49:00 +08:00
parent 238f210d52
commit 4aa9204df7
26 changed files with 4341 additions and 2623 deletions
@@ -141,7 +141,7 @@
<el-form-item label="内容" prop="content">
<div class="editor-container">
<WangEditor v-model="form.content" />
<TiptapEditor v-model="form.content" />
</div>
</el-form-item>
</el-form>
@@ -171,7 +171,6 @@
<script lang="ts" setup>
import { ref, reactive, watch, nextTick, onMounted, computed } from "vue";
import { ElMessage, ElUpload } from "element-plus";
import WangEditor from "@/views/components/WangEditor.vue";
import { createArticle, editArticle, listCategories } from "@/api/article.js";
import { uploadFile } from "@/api/file.js";
@@ -535,8 +534,7 @@ onMounted(() => {
outline: none !important;
}
:deep(.w-e-text),
:deep(.w-e-text-container) {
:deep(.tiptap) {
p {
color: #1a1a2e !important;
margin: 0.5em 0 !important;