fix(document): 统一编辑器与文书纸的排版和字体口径

This commit is contained in:
yelan
2026-09-30 11:20:27 +08:00
parent 3628c5ed86
commit 1d271ef1bd
10 changed files with 268 additions and 63 deletions
@@ -361,11 +361,9 @@ defineExpose({ getDocumentElement })
</template>
<style scoped>
.managed-font,
.managed-font :deep(*) {
font-family: var(--document-font) !important;
font-synthesis: none;
}
/* 文书字体(.managed-font / --document-font)在 utils/document-paper.ts 的
DOCUMENT_PAPER_CSS 里 —— 编辑器编辑面也要换上同一份字体,所以它是全局规则,
不是这张纸私有的。 */
/* 基础排版(p / h2 / h3 / table / th / td / img)在 utils/document-paper.ts 的
DOCUMENT_PAPER_CSS 里,运行期注入 head —— 那里是唯一一份。