refactor(后台富文本): 编辑器从 wangEditor 换成 Tiptap,老题面的图片尺寸、缩进、颜色打开再保存都不丢
Deploy / deploy (push) Canceled after 0s

拿库里全部 3384 条题面 / 提示 / 公告 / 比赛说明做过往返比对,补上图片 style、base64 图片、
段落缩进三处后文字和格式都对得上。工具栏照画布做成一行浅灰小图标,四套档位不变,
加了行内代码、光标在表格里出加删行列。表格格子里的段落在学生端不再把行撑高。
编辑器 JS 638 kB → 455 kB,wangEditor 的 39 kB 样式不用了;polyfill 清单重新审过,
去掉只有 wangEditor 用到的 web.immediate。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-20 20:20:13 +08:00
1 parent a2dcafae14
commit 9e2217e09d
8 files changed
+874 -230

No files matched your search

+4
View File
@@ -168,6 +168,10 @@ Naive 的日期选择器按浏览器本地时区渲染、没有 `timezone` 属
- `utils/functions.ts` — `parseTime` / `zonedParts` / `zonedYear`(东八区时间口径,见上)、
`duration`、压缩与剪贴板等杂项
- `utils/judge.ts` — Judge-related utilities
- `shared/richText.ts` — 后台富文本(`shared/components/TextEditor.vue`,Tiptap)的扩展配置。
库里是 wangEditor 时代的 HTML,Tiptap 认不出的东西打开再保存就悄悄没了 —— **动扩展之前
拿全量存量内容做一遍往返比对**(HTML → Tiptap → HTML,再过 markdown-it 比学生看到的),
图片尺寸、缩进那两个补丁就是这么比出来的
### Environment Variables