[{"data":1,"prerenderedAt":632},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fclassic-word-proofing":3},{"id":4,"title":5,"body":6,"description":12,"extension":619,"keywords":620,"locale":623,"meta":624,"navigation":625,"order":626,"path":627,"section":628,"seo":629,"stem":630,"__hash__":631},"docs\u002Fplugins\u002Freference\u002Fclassic-word-proofing.zh-CN.md","ClassicWordProofing · Word 校对控件",{"type":7,"value":8,"toc":591},"minimark",[9,13,24,28,34,84,92,95,101,104,111,140,148,151,162,166,169,176,180,183,189,195,198,201,205,210,213,216,221,226,229,232,237,242,246,249,254,259,263,266,271,276,280,283,287,292,296,299,303,308,312,315,319,324,328,331,335,340,344,347,351,356,360,363,367,372,376,379,383,387,391,394,399,403,406,409,414,419,423,426,431,435,439,442,447,452,455,462,548,556,559,570,587],[10,11,12],"p",{},"在 Proofing 上增加产品界面。直接配置时 provider 默认仍为空；ClassicWordKit 可提供自己的默认 provider，不能混淆两种默认值。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fclassic-docx"," · ",[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,73],"tbody",{},[41,57,58,62,65],{},[59,60,61],"td",{},"Classic",[59,63,64],{},"直接支持",[59,66,67,72],{},[68,69,71],"a",{"href":70},"\u002Fplugins\u002Freference\u002Fcreate-classic-word-preset","createClassicWordPreset"," — 使用 createClassicWordPreset 装配 Word 模型、布局与产品适配；具体控件、开关、宿主服务及文件支持以本页说明为准。批注、修订和内容控件的完整创作界面另需 Pro。",[41,74,75,78,81],{},[59,76,77],{},"Block",[59,79,80],{},"未支持",[59,82,83],{},"Block 不消费 Classic 产品 contribution、plugins 或分页装配。请使用共享能力和 Block 适配入口，不能直接复制此入口的 Classic 配置。",[10,85,86,87,91],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[68,88,90],{"href":89},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,93,94],{"id":94},"接入",[10,96,97,98,100],{},"当前 ",[16,99,18],{}," 的包元数据标为 private。本站使用工作区源码；外部项目需先取得对应分发包，不能把下面的公开导出理解为已经能从公共 npm 安装。",[10,102,103],{},"此入口属于商业组件。使用前先取得相应分发与授权；安装命令仅适用于已配置该分发源的项目。",[10,105,106,107,110],{},"先使用 ",[68,108,109],{"href":70},"Word 预设","。这里的单项适配器用于自定义预设或替换子项；不能向已有装配再追加同名扩展。",[112,113,118],"pre",{"className":114,"code":115,"language":116,"meta":117,"style":117},"language-ts shiki shiki-themes github-light github-light github-dark","import { ClassicWordProofing } from '@quirekit\u002Fclassic-docx'\n","ts","",[16,119,120],{"__ignoreMap":117},[121,122,125,129,133,136],"span",{"class":123,"line":124},"line",1,[121,126,128],{"class":127},"sDD9d","import",[121,130,132],{"class":131},"sVPnS"," { ClassicWordProofing } ",[121,134,135],{"class":127},"from",[121,137,139],{"class":138},"s-HEn"," '@quirekit\u002Fclassic-docx'\n",[10,141,142,143,147],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[68,144,146],{"href":145},"\u002Fsupport","支持与许可","。",[25,149,150],{"id":150},"按编辑器接入",[10,152,153,154,157,158,161],{},"以下片段沿用已挂载的宿主元素 ",[16,155,156],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,159,160],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[163,164],"plugin-integration",{"name":165},"ClassicWordProofing",[25,167,168],{"id":168},"配置",[10,170,171,172,147],{},"下面是扩展自身的默认选项。预设可以覆盖这些值；它们不等于当前文档属性。配置方法见",[68,173,175],{"href":174},"\u002Fplugins\u002Fconfiguration","配置插件",[177,178,179],"h3",{"id":179},"ribbon",[10,181,182],{},"是否向 Classic 功能区贡献控件。直接使用适配器与由预设装配时的值可能不同。",[10,184,185,186],{},"类型：",[16,187,188],{},"boolean",[10,190,191,192],{},"默认：",[16,193,194],{},"false",[177,196,197],{"id":197},"enabled",[10,199,200],{},"是否启用此能力的会话行为。禁用不会删除规范文档内容。",[10,202,185,203],{},[16,204,188],{},[10,206,191,207],{},[16,208,209],{},"true",[177,211,212],{"id":212},"provider",[10,214,215],{},"直接使用此适配器时默认 null；完整 Word kit 可以注入默认 provider。自定义检查服务在这里传入。",[10,217,185,218],{},[16,219,220],{},"ProofingProvider | null",[10,222,191,223],{},[16,224,225],{},"null",[177,227,228],{"id":228},"policy",[10,230,231],{},"校对时的策略适配，用于语言、分段或业务范围等规则。",[10,233,185,234],{},[16,235,236],{},"ProofingDocumentPolicy | null",[10,238,191,239],{},[16,240,241],{},"createClassicWordProofingPolicy()",[177,243,245],{"id":244},"defaultlanguage","defaultLanguage",[10,247,248],{},"未从文本读取到语言时使用的默认语言；CodeBlock 中则是代码语言值。",[10,250,185,251],{},[16,252,253],{},"string | null",[10,255,191,256],{},[16,257,258],{},"\"en-US\"",[177,260,262],{"id":261},"debouncems","debounceMs",[10,264,265],{},"连续输入后等待再检查的延迟，单位为毫秒。",[10,267,185,268],{},[16,269,270],{},"number",[10,272,191,273],{},[16,274,275],{},"400",[177,277,279],{"id":278},"maxwaitms","maxWaitMs",[10,281,282],{},"连续输入期间允许推迟校对的最长时间，单位为毫秒。",[10,284,185,285],{},[16,286,270],{},[10,288,191,289],{},[16,290,291],{},"2000",[177,293,295],{"id":294},"timeoutms","timeoutMs",[10,297,298],{},"单次校对请求超时，单位为毫秒。",[10,300,185,301],{},[16,302,270],{},[10,304,191,305],{},[16,306,307],{},"10000",[177,309,311],{"id":310},"maxconcurrentrequests","maxConcurrentRequests",[10,313,314],{},"最多同时执行的校对请求数。",[10,316,185,317],{},[16,318,270],{},[10,320,191,321],{},[16,322,323],{},"2",[177,325,327],{"id":326},"maxsegmentsperbatch","maxSegmentsPerBatch",[10,329,330],{},"每批提交的最大文本分段数。",[10,332,185,333],{},[16,334,270],{},[10,336,191,337],{},[16,338,339],{},"40",[177,341,343],{"id":342},"maxcharactersperbatch","maxCharactersPerBatch",[10,345,346],{},"每批提交的最大字符数。",[10,348,185,349],{},[16,350,270],{},[10,352,191,353],{},[16,354,355],{},"8000",[177,357,359],{"id":358},"maxsuggestions","maxSuggestions",[10,361,362],{},"每个校对问题最多保留的建议数。",[10,364,185,365],{},[16,366,270],{},[10,368,191,369],{},[16,370,371],{},"5",[177,373,375],{"id":374},"maxissues","maxIssues",[10,377,378],{},"会话最多保留的问题数量，避免无界增长。",[10,380,185,381],{},[16,382,270],{},[10,384,191,385],{},[16,386,291],{},[177,388,390],{"id":389},"dictionarystore","dictionaryStore",[10,392,393],{},"个人词典的宿主持久化接口。未提供时不承诺跨页面保留。",[10,395,185,396],{},[16,397,398],{},"ProofingDictionaryStore | null",[10,400,191,401],{},[16,402,225],{},[177,404,405],{"id":405},"appearance",[10,407,408],{},"拼写、语法与风格问题的下划线颜色配置。",[10,410,185,411],{},[16,412,413],{},"ProofingAppearance",[10,415,191,416],{},[16,417,418],{},"{ spelling: \"#e5484d\", grammar: \"#3e63dd\", style: \"#8e4ec6\" }",[177,420,422],{"id":421},"onerror","onError",[10,424,425],{},"校对发生错误时的回调；用于宿主反馈或记录失败。",[10,427,185,428],{},[16,429,430],{},"((error: ProofingError) => void) | null",[10,432,191,433],{},[16,434,225],{},[177,436,438],{"id":437},"resolvevisiblerange","resolveVisibleRange",[10,440,441],{},"读取当前可见文档范围，供校对调度优先处理。默认实现使用已挂载视图。",[10,443,185,444],{},[16,445,446],{},"((editor: QuireEditor) => ProofingRange | null) | null",[10,448,191,449],{},[16,450,451],{},"resolveDefaultProofingVisibleRange",[25,453,454],{"id":454},"命令与运行方式",[10,456,457,458,461],{},"以下命令由此扩展直接提供，均在当前 Editor 上调用。命令是否可用由已安装 schema、当前选区与保护策略决定；可以先用 ",[16,459,460],{},"editor.can()"," 查询。",[35,463,464,474],{},[38,465,466],{},[41,467,468,471],{},[44,469,470],{},"命令",[44,472,473],{},"参数签名",[54,475,476,488,500,512,524,536],{},[41,477,478,483],{},[59,479,480],{},[16,481,482],{},"setProofingEnabled",[59,484,485],{},[16,486,487],{},"setProofingEnabled(enabled: boolean)",[41,489,490,495],{},[59,491,492],{},[16,493,494],{},"recheckProofing",[59,496,497],{},[16,498,499],{},"recheckProofing()",[41,501,502,507],{},[59,503,504],{},[16,505,506],{},"replaceProofingIssue",[59,508,509],{},[16,510,511],{},"replaceProofingIssue(issueId: string, replacement: string)",[41,513,514,519],{},[59,515,516],{},[16,517,518],{},"ignoreProofingIssue",[59,520,521],{},[16,522,523],{},"ignoreProofingIssue(issueId: string)",[41,525,526,531],{},[59,527,528],{},[16,529,530],{},"ignoreProofingWord",[59,532,533],{},[16,534,535],{},"ignoreProofingWord(word: string)",[41,537,538,543],{},[59,539,540],{},[16,541,542],{},"addProofingWord",[59,544,545],{},[16,546,547],{},"addProofingWord(word: string)",[10,549,550,551,555],{},"这里只展示参数签名。接界面时见",[68,552,554],{"href":553},"\u002Fbuild\u002Fcommands","命令与控件","，正文变更继续经过同一事务与历史。",[25,557,558],{"id":558},"下一步",[10,560,561,562,566,567,569],{},"返回",[68,563,565],{"href":564},"\u002Fplugins","全部插件","，或阅读",[68,568,175],{"href":174},"区分配置、文档属性与命令。",[10,571,572,573,577,578,582,583,147],{},"继续",[68,574,576],{"href":575},"\u002Fclassic\u002Fquick-start","Classic 快速接入","和",[68,579,581],{"href":580},"\u002Fclassic\u002Fconfiguration","配置与生命周期","。开发自己的产品界面与服务时，见",[68,584,586],{"href":585},"\u002Fbuild\u002Fproduct-plugin","产品插件开发",[588,589,590],"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":117,"searchDepth":592,"depth":592,"links":593},2,[594,595,596,597,617,618],{"id":27,"depth":592,"text":27},{"id":94,"depth":592,"text":94},{"id":150,"depth":592,"text":150},{"id":168,"depth":592,"text":168,"children":598},[599,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616],{"id":179,"depth":600,"text":179},3,{"id":197,"depth":600,"text":197},{"id":212,"depth":600,"text":212},{"id":228,"depth":600,"text":228},{"id":244,"depth":600,"text":245},{"id":261,"depth":600,"text":262},{"id":278,"depth":600,"text":279},{"id":294,"depth":600,"text":295},{"id":310,"depth":600,"text":311},{"id":326,"depth":600,"text":327},{"id":342,"depth":600,"text":343},{"id":358,"depth":600,"text":359},{"id":374,"depth":600,"text":375},{"id":389,"depth":600,"text":390},{"id":405,"depth":600,"text":405},{"id":421,"depth":600,"text":422},{"id":437,"depth":600,"text":438},{"id":454,"depth":592,"text":454},{"id":558,"depth":592,"text":558},"md",[165,18,621,622,179,197,212,228,245,262,279,295,311,327,343,359,375,390,405,422,438,482,494,506,518,530,542,165],"Word 校对控件","classic","zh-CN",{"navigationTitle":165,"license":23},true,62,"\u002Fplugins\u002Freference\u002Fclassic-word-proofing","Classic 产品扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fclassic-word-proofing.zh-CN","q4y6HWhYDPVRiusQk9OhHy_EW2YH8Ki44wN2cA6H59s",1793045221984]