refactor(后台富文本): 编辑器从 wangEditor 换成 Tiptap,老题面的图片尺寸、缩进、颜色打开再保存都不丢
Deploy / deploy (push) Canceled after 0s
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:
1 parent
a2dcafae14
commit
9e2217e09d
8 files changed
+874
-230
No files matched your search
@@ -1530,10 +1530,7 @@ onMounted(async () => {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/*
|
||||
* align-items: start 不能省:wangEditor 给内容区写死了 height: 100%,格子把 .field 拉伸成
|
||||
* 确定高度之后这个 100% 就按外框算,工具栏的高度被挤出去,编辑框盖到下面的知识点那行上
|
||||
*/
|
||||
/* 输入、输出两格各按自己的内容长高,不互相拉齐 */
|
||||
.io {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -1712,16 +1709,6 @@ onMounted(async () => {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
/* 老题面里的图片带着写死的像素宽(有 1118px 的),把整页撑出横向滚动 */
|
||||
.card :deep(.w-e-image-container) {
|
||||
max-width: 100%;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.card :deep(.w-e-image-container img) {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.inlineRow {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user