[{"data":1,"prerenderedAt":272},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fofficial-document":3},{"id":4,"title":5,"body":6,"description":12,"extension":259,"keywords":260,"locale":263,"meta":264,"navigation":265,"order":266,"path":267,"section":268,"seo":269,"stem":270,"__hash__":271},"docs\u002Fplugins\u002Freference\u002Fofficial-document.zh-CN.md","OfficialDocument · 公文生成命令",{"type":7,"value":8,"toc":250},"minimark",[9,13,24,28,34,79,88,91,97,100,108,137,145,148,159,163,166,169,172,179,205,213,216,229,246],[10,11,12],"p",{},"提供 composeOfficialDocument：校验公文数据后在一次可撤销的编辑中替换整篇文档。通常通过 createClassicOfficialDocumentPlugin 安装。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fofficial-document\u002Fclassic"," · ",[21,22,23],"strong",{},"Commercial",[25,26,27],"h2",{"id":27},"编辑器适用范围",[10,29,30,31],{},"层次：",[21,32,33],{},"Classic 产品适配",[35,36,37,53],"table",{},[38,39,40],"thead",{},[41,42,43,47,50],"tr",{},[44,45,46],"th",{},"编辑器",[44,48,49],{},"状态",[44,51,52],{},"所需装配与边界",[54,55,56,68],"tbody",{},[41,57,58,62,65],{},[59,60,61],"td",{},"Classic",[59,63,64],{},"直接支持",[59,66,67],{},"这是可选的 Classic 产品扩展，加入 createClassicEditor 的 extensions。宿主继续负责资源、持久化与相应样式；它不是 plugins 中的产品插件。",[41,69,70,73,76],{},[59,71,72],{},"Block",[59,74,75],{},"未支持",[59,77,78],{},"Block 不消费 Classic 产品 contribution、plugins 或分页装配。请使用共享能力和 Block 适配入口，不能直接复制此入口的 Classic 配置。",[10,80,81,82,87],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[83,84,86],"a",{"href":85},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,89,90],{"id":90},"接入",[10,92,93,94,96],{},"当前 ",[16,95,18],{}," 的包元数据标为 private。本站使用工作区源码；外部项目需先取得对应分发包，不能把下面的公开导出理解为已经能从公共 npm 安装。",[10,98,99],{},"此入口属于商业组件。使用前先取得相应分发与授权；安装命令仅适用于已配置该分发源的项目。",[10,101,102,103,107],{},"先使用 ",[83,104,106],{"href":105},"\u002Fplugins\u002Freference\u002Fclassic-editor-kit","Classic 基础装配","。这里的单项适配器用于自定义预设或替换子项；不能向已有装配再追加同名扩展。",[109,110,115],"pre",{"className":111,"code":112,"language":113,"meta":114,"style":114},"language-ts shiki shiki-themes github-light github-light github-dark","import { OfficialDocument } from '@quirekit\u002Fofficial-document\u002Fclassic'\n","ts","",[16,116,117],{"__ignoreMap":114},[118,119,122,126,130,133],"span",{"class":120,"line":121},"line",1,[118,123,125],{"class":124},"sDD9d","import",[118,127,129],{"class":128},"sVPnS"," { OfficialDocument } ",[118,131,132],{"class":124},"from",[118,134,136],{"class":135},"s-HEn"," '@quirekit\u002Fofficial-document\u002Fclassic'\n",[10,138,139,140,144],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[83,141,143],{"href":142},"\u002Fsupport","支持与许可","。",[25,146,147],{"id":147},"按编辑器接入",[10,149,150,151,154,155,158],{},"以下片段沿用已挂载的宿主元素 ",[16,152,153],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,156,157],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[160,161],"plugin-integration",{"name":162},"OfficialDocument",[25,164,165],{"id":165},"配置",[10,167,168],{},"此入口没有独立的配置字段。文档属性通过领域命令设置；产品预设可能继续装配其他可配置子扩展。",[25,170,171],{"id":171},"命令与运行方式",[10,173,174,175,178],{},"以下命令由此扩展直接提供，均在当前 Editor 上调用。命令是否可用由已安装 schema、当前选区与保护策略决定；可以先用 ",[16,176,177],{},"editor.can()"," 查询。",[35,180,181,191],{},[38,182,183],{},[41,184,185,188],{},[44,186,187],{},"命令",[44,189,190],{},"参数签名",[54,192,193],{},[41,194,195,200],{},[59,196,197],{},[16,198,199],{},"composeOfficialDocument",[59,201,202],{},[16,203,204],{},"composeOfficialDocument(data: { version?: 1; title?: string; format?: \"letter\"; copyNumber?: string; secrecy?: { term?: string; level: \"秘密\" | \"机密\" | \"绝密\"; }; urgency?: \"特急\" | \"加急\" | \"特提\" | \"平急\"; documentNumber?: string; signers?: string[]; adoption?: string; recipients?: string[]; attachments?: string[]; signature?: { type: \"agency\"; } | { seals?: string[]; diameter?: number; type: \"sealed\"; } | { height?: number; type: \"stamp\"; stamps: { image?: string; position: string; }[]; } | { name: string; type: \"leader\"; position: string; } | { type: \"none\"; }; date?: string; note?: string; attendees?: { label: \"出席\" | \"请假\" | \"列席\"; names: string[]; }[]; imprint?: { date?: string; cc?: string[]; office?: string; }; kind: \"resolution\" | \"decision\" | \"order\" | \"communique\" | \"announcement\" | \"public-notice\" | \"opinion\" | \"notice\" | \"circular\" | \"report\" | \"request\" | \"reply\" | \"proposal\" | \"letter\" | \"minutes\"; issuer: { joint?: string[]; mark?: string; agency: string; }; body: ({ type: \"paragraph\"; text: string; } | { text?: string; title: string; type: \"heading\"; level: number; } | { title?: string; header?: string[][]; columns?: { width?: number; align?: \"start\" | \"center\" | \"end\"; }[]; fontSize?: 16 | 14 | 12; type: \"table\"; rows: string[][]; } | { width?: number; caption?: string; type: \"image\"; src: string; })[]; })",[10,206,207,208,212],{},"这里只展示参数签名。接界面时见",[83,209,211],{"href":210},"\u002Fbuild\u002Fcommands","命令与控件","，正文变更继续经过同一事务与历史。",[25,214,215],{"id":215},"下一步",[10,217,218,219,223,224,228],{},"返回",[83,220,222],{"href":221},"\u002Fplugins","全部插件","，或阅读",[83,225,227],{"href":226},"\u002Fplugins\u002Fconfiguration","配置插件","区分配置、文档属性与命令。",[10,230,231,232,236,237,241,242,144],{},"继续",[83,233,235],{"href":234},"\u002Fclassic\u002Fquick-start","Classic 快速接入","和",[83,238,240],{"href":239},"\u002Fclassic\u002Fconfiguration","配置与生命周期","。开发自己的产品界面与服务时，见",[83,243,245],{"href":244},"\u002Fbuild\u002Fproduct-plugin","产品插件开发",[247,248,249],"style",{},"html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":114,"searchDepth":251,"depth":251,"links":252},2,[253,254,255,256,257,258],{"id":27,"depth":251,"text":27},{"id":90,"depth":251,"text":90},{"id":147,"depth":251,"text":147},{"id":165,"depth":251,"text":165},{"id":171,"depth":251,"text":171},{"id":215,"depth":251,"text":215},"md",[162,18,261,262,199,162],"公文生成命令","classic","zh-CN",{"navigationTitle":162,"license":23},true,121,"\u002Fplugins\u002Freference\u002Fofficial-document","Classic 产品扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fofficial-document.zh-CN","I-4D-rkjj0DDt6U4X_Knu10WZBkHeIQfnh2hrwRECiM",1793045222321]