优化Jeditor编辑体验

This commit is contained in:
jingrow 2026-01-24 19:34:22 +08:00
parent 33f0b6f049
commit 7ac10122f7

View File

@ -839,6 +839,13 @@ watch(() => props.disabled, (disabled) => {
border: none;
box-shadow: none;
}
/* 确保 ProseMirror 编辑器填满整个容器,可点击激活 */
.jeditor .ProseMirror {
min-height: 276px; /* 300px - 12px padding * 2 */
width: 100%;
cursor: text;
outline: none;
}
.tiptap-toolbar-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid currentColor; display: inline-block; margin-left: 4px; opacity: .8; }
.tiptap-toolbar .material-symbols-outlined { font-size: 18px !important; line-height: 18px !important; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.jeditor-source-textarea {