容错处理

This commit is contained in:
董宏凯 committed 2026-05-18 11:29:40 +08:00
1 parent 0af8ca5f78
commit 836dd73446
6 files changed
+79 -17

No files matched your search

+6
View File
@@ -579,6 +579,7 @@
line-height: 1.8;
font-size: 0.9375rem; /* 15px */
color: var(--foreground);
text-indent: 2em; /* 段落首行缩进 */
}
.tiptap-writing-editor .ProseMirror h1 {
@@ -658,6 +659,7 @@
.tiptap-writing-editor .ProseMirror li > p {
margin-bottom: 0.25rem;
text-indent: 0; /* 列表项内段落不缩进 */
}
.tiptap-writing-editor .ProseMirror blockquote {
@@ -716,6 +718,10 @@
}
/* Placeholder */
.tiptap-writing-editor .ProseMirror p.is-editor-empty:first-child {
text-indent: 0; /* 占位文案不缩进 */
}
.tiptap-writing-editor .ProseMirror p.is-editor-empty:first-child::before {
content: attr(data-placeholder);
color: var(--muted-foreground);