fix(document): 统一编辑器与文书纸的排版和字体口径
This commit is contained in:
@@ -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 —— 那里是唯一一份。
|
||||
|
||||
Reference in New Issue
Block a user