fix(editor): 修复编辑器样式和功能问题

修复编辑器容器高度设置问题,统一h2标签为h1
调整图片和视频的显示样式,修复表格背景色
优化编辑器工具栏功能,修复链接插入逻辑
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-27 19:23:49 +08:00
parent f7af6d4046
commit 2a227a806d
8 changed files with 1100 additions and 600 deletions

View File

@@ -76,8 +76,10 @@
#edit .edit-container #editorwrapper {
z-index: 100;
}
#edit .edit-container #editorwrapper .bold {
font-weight: bold;
#edit .edit-container #editorwrapper .bold,
#edit .edit-container #editorwrapper .bold span {
font-weight: bolder;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
}
#edit .edit-container #editorwrapper .editor-toolbar {
height: 36px;
@@ -262,14 +264,14 @@
#edit .edit-container #editorwrapper .editor-toolbar .toolbar-item.link .link-box .btn:hover {
background-color: #23e0b6;
}
#edit .edit-container #editorwrapper .editor-toolbar .toolbar-item.h2.pitch {
#edit .edit-container #editorwrapper .editor-toolbar .toolbar-item.h1.pitch {
background-color: #f6f6bd;
}
#edit .edit-container #editorwrapper .editor-toolbar .toolbar-item.active > button {
background-color: #f6f6bd;
}
#edit .edit-container #editorwrapper #editor-container {
min-height: 500px;
height: 500px;
max-height: 80vh;
font-size: 18px;
line-height: 26px;
@@ -280,6 +282,17 @@
text-decoration: underline;
color: #04b0d5;
}
#edit .edit-container #editorwrapper #editor-container h1,
#edit .edit-container #editorwrapper #editor-container h1 span {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000;
font-size: 18px;
line-height: 30px;
}
#edit .edit-container #editorwrapper #editor-container video {
max-width: 100%;
}
#edit .edit-container .content-input {
min-height: 509px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
@@ -306,12 +319,12 @@
max-width: 100%;
height: 220px;
}
#edit .edit-container .content-input h2 {
#edit .edit-container .content-input h1 {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000;
font-size: 18px;
line-height: 30px;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
}
#edit .edit-container .content-input .blue {
color: #026277;