外观
公文写作版|把规范写作做成日常能力
包名:@aieditor/official
公文写作版依赖开源核心和商业基础扩展,面向红头、公文版式、分页、签章及相关文档转换能力。它将 GB/T 9704 基线、结构化节点和合规检查组合进编辑流程,减少格式返工,让规范成为系统默认值。
bash
npm install aieditor @aieditor/pro @aieditor/official公文节点和 attrs 必须与 aieditor-java-sdk 的 Tiptap、Document IR 和 DOCX 契约保持兼容。
ts
import 'aieditor/style.css'
import '@aieditor/pro/style.css'
import '@aieditor/official/style.css'
import {AiEditorOfficial} from '@aieditor/official'
const editor = new AiEditorOfficial({element: '#editor'})AiEditorOfficial 继承 AiEditorPro。公文节点、GB/T 9704 样式、菜单、合规检查和 信函首页页码联动均由该包注入;开源核心和 Pro 分页器不识别公文节点名。