[{"data":1,"prerenderedAt":641},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fclassic-word-content-control":3},{"id":4,"title":5,"body":6,"description":12,"extension":628,"keywords":629,"locale":632,"meta":633,"navigation":634,"order":635,"path":636,"section":637,"seo":638,"stem":639,"__hash__":640},"docs\u002Fplugins\u002Freference\u002Fclassic-word-content-control.zh-CN.md","ClassicWordContentControl · Pro 内容控件编辑器",{"type":7,"value":8,"toc":613},"minimark",[9,13,24,28,34,84,92,95,101,104,111,140,148,151,162,166,169,176,180,183,189,195,199,202,207,212,216,219,224,229,233,236,241,246,249,256,570,578,581,592,609],[10,11,12],"p",{},"为行内、行和单元格内容控件提供编辑界面，连接模板与填写模式。通常由专业版预设填入 Word kit 的功能插槽。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fclassic-pro"," · ",[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-pro-preset","createClassicWordProPreset"," — 使用 createClassicWordProPreset 安装专业产品能力；审阅界面还受 review 特性控制。不要再追加同名社区或专业扩展。",[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 { ClassicWordContentControl } from '@quirekit\u002Fclassic-pro'\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"," { ClassicWordContentControl } ",[121,134,135],{"class":127},"from",[121,137,139],{"class":138},"s-HEn"," '@quirekit\u002Fclassic-pro'\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},"ClassicWordContentControl",[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,198],{"id":197},"displaymode","displayMode",[10,200,201],{},"内容控件的初始边框、标签等显示策略，不写入 Word 持久属性。",[10,203,185,204],{},[16,205,206],{},"\"alwaysShow\" | \"automatic\" | \"hide\"",[10,208,191,209],{},[16,210,211],{},"\"automatic\"",[177,213,215],{"id":214},"authoringmode","authoringMode",[10,217,218],{},"初始模板创作或填写模式，不写入 Word 持久属性。",[10,220,185,221],{},[16,222,223],{},"\"fill\" | \"template\"",[10,225,191,226],{},[16,227,228],{},"\"template\"",[177,230,232],{"id":231},"resolveprotectedfillmode","resolveProtectedFillMode",[10,234,235],{},"读取规范文档保护策略，判断是否强制进入填写交互。",[10,237,185,238],{},[16,239,240],{},"(state: EditorState): boolean",[10,242,191,243],{},[16,244,245],{},"() => false",[25,247,248],{"id":248},"命令与运行方式",[10,250,251,252,255],{},"以下命令由此扩展直接提供，均在当前 Editor 上调用。命令是否可用由已安装 schema、当前选区与保护策略决定；可以先用 ",[16,253,254],{},"editor.can()"," 查询。",[35,257,258,268],{},[38,259,260],{},[41,261,262,265],{},[44,263,264],{},"命令",[44,266,267],{},"参数签名",[54,269,270,282,294,306,318,330,342,354,366,378,390,402,414,426,438,450,462,474,486,498,510,522,534,546,558],{},[41,271,272,277],{},[59,273,274],{},[16,275,276],{},"setWordContentControlAuthoringMode",[59,278,279],{},[16,280,281],{},"setWordContentControlAuthoringMode(mode: WordContentControlAuthoringMode)",[41,283,284,289],{},[59,285,286],{},[16,287,288],{},"moveToWordContentControl",[59,290,291],{},[16,292,293],{},"moveToWordContentControl(direction: WordContentControlTraversalDirection)",[41,295,296,301],{},[59,297,298],{},[16,299,300],{},"insertWordInlineCheckbox",[59,302,303],{},[16,304,305],{},"insertWordInlineCheckbox(options?: InsertWordInlineCheckboxOptions | undefined)",[41,307,308,313],{},[59,309,310],{},[16,311,312],{},"setWordInlineCheckboxChecked",[59,314,315],{},[16,316,317],{},"setWordInlineCheckboxChecked(checked: boolean)",[41,319,320,325],{},[59,321,322],{},[16,323,324],{},"toggleWordInlineCheckbox",[59,326,327],{},[16,328,329],{},"toggleWordInlineCheckbox()",[41,331,332,337],{},[59,333,334],{},[16,335,336],{},"toggleWordInlineCheckboxAtPosition",[59,338,339],{},[16,340,341],{},"toggleWordInlineCheckboxAtPosition(options: ToggleWordInlineCheckboxAtPositionOptions)",[41,343,344,349],{},[59,345,346],{},[16,347,348],{},"configureWordInlineCheckbox",[59,350,351],{},[16,352,353],{},"configureWordInlineCheckbox(options: ConfigureWordInlineCheckboxOptions)",[41,355,356,361],{},[59,357,358],{},[16,359,360],{},"insertWordInlineDropDownList",[59,362,363],{},[16,364,365],{},"insertWordInlineDropDownList(options?: InsertWordInlineListOptions | undefined)",[41,367,368,373],{},[59,369,370],{},[16,371,372],{},"insertWordInlineComboBox",[59,374,375],{},[16,376,377],{},"insertWordInlineComboBox(options?: InsertWordInlineListOptions | undefined)",[41,379,380,385],{},[59,381,382],{},[16,383,384],{},"selectWordInlineListItem",[59,386,387],{},[16,388,389],{},"selectWordInlineListItem(value: string)",[41,391,392,397],{},[59,393,394],{},[16,395,396],{},"setWordInlineComboBoxText",[59,398,399],{},[16,400,401],{},"setWordInlineComboBoxText(value: string)",[41,403,404,409],{},[59,405,406],{},[16,407,408],{},"configureWordInlineList",[59,410,411],{},[16,412,413],{},"configureWordInlineList(options: ConfigureWordInlineListOptions)",[41,415,416,421],{},[59,417,418],{},[16,419,420],{},"insertWordInlineDate",[59,422,423],{},[16,424,425],{},"insertWordInlineDate(options?: InsertWordInlineDateOptions | undefined)",[41,427,428,433],{},[59,429,430],{},[16,431,432],{},"setWordInlineDateValue",[59,434,435],{},[16,436,437],{},"setWordInlineDateValue(value: string)",[41,439,440,445],{},[59,441,442],{},[16,443,444],{},"configureWordInlineDate",[59,446,447],{},[16,448,449],{},"configureWordInlineDate(options: ConfigureWordInlineDateOptions)",[41,451,452,457],{},[59,453,454],{},[16,455,456],{},"insertWordInlinePictureContentControl",[59,458,459],{},[16,460,461],{},"insertWordInlinePictureContentControl(options: InsertWordInlinePictureContentControlOptions)",[41,463,464,469],{},[59,465,466],{},[16,467,468],{},"setWordInlineContentControlDisplayMode",[59,470,471],{},[16,472,473],{},"setWordInlineContentControlDisplayMode(mode: WordInlineContentControlDisplayMode)",[41,475,476,481],{},[59,477,478],{},[16,479,480],{},"setWordInlineContentControlHoveredId",[59,482,483],{},[16,484,485],{},"setWordInlineContentControlHoveredId(controlId: string | null)",[41,487,488,493],{},[59,489,490],{},[16,491,492],{},"fillWordContentControls",[59,494,495],{},[16,496,497],{},"fillWordContentControls(options: FillWordContentControlsOptions)",[41,499,500,505],{},[59,501,502],{},[16,503,504],{},"insertWordFormField",[59,506,507],{},[16,508,509],{},"insertWordFormField(options: InsertWordFormFieldOptions)",[41,511,512,517],{},[59,513,514],{},[16,515,516],{},"insertWordInlineContentControl",[59,518,519],{},[16,520,521],{},"insertWordInlineContentControl(options?: InsertWordInlineContentControlOptions | undefined)",[41,523,524,529],{},[59,525,526],{},[16,527,528],{},"exitWordInlineContentControl",[59,530,531],{},[16,532,533],{},"exitWordInlineContentControl(options: ExitWordInlineContentControlOptions)",[41,535,536,541],{},[59,537,538],{},[16,539,540],{},"updateWordInlineContentControl",[59,542,543],{},[16,544,545],{},"updateWordInlineContentControl(options: UpdateWordInlineContentControlOptions)",[41,547,548,553],{},[59,549,550],{},[16,551,552],{},"unwrapWordInlineContentControl",[59,554,555],{},[16,556,557],{},"unwrapWordInlineContentControl()",[41,559,560,565],{},[59,561,562],{},[16,563,564],{},"deleteWordInlineContentControl",[59,566,567],{},[16,568,569],{},"deleteWordInlineContentControl()",[10,571,572,573,577],{},"这里只展示参数签名。接界面时见",[68,574,576],{"href":575},"\u002Fbuild\u002Fcommands","命令与控件","，正文变更继续经过同一事务与历史。",[25,579,580],{"id":580},"下一步",[10,582,583,584,588,589,591],{},"返回",[68,585,587],{"href":586},"\u002Fplugins","全部插件","，或阅读",[68,590,175],{"href":174},"区分配置、文档属性与命令。",[10,593,594,595,599,600,604,605,147],{},"继续",[68,596,598],{"href":597},"\u002Fclassic\u002Fquick-start","Classic 快速接入","和",[68,601,603],{"href":602},"\u002Fclassic\u002Fconfiguration","配置与生命周期","。开发自己的产品界面与服务时，见",[68,606,608],{"href":607},"\u002Fbuild\u002Fproduct-plugin","产品插件开发",[610,611,612],"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":614,"depth":614,"links":615},2,[616,617,618,619,626,627],{"id":27,"depth":614,"text":27},{"id":94,"depth":614,"text":94},{"id":150,"depth":614,"text":150},{"id":168,"depth":614,"text":168,"children":620},[621,623,624,625],{"id":179,"depth":622,"text":179},3,{"id":197,"depth":622,"text":198},{"id":214,"depth":622,"text":215},{"id":231,"depth":622,"text":232},{"id":248,"depth":614,"text":248},{"id":580,"depth":614,"text":580},"md",[165,18,630,631,179,198,215,232,276,288,300,312,324,336,348,360,372,384,396,408,420,432,444,456,468,480,492,504,516,528,540,552,564,165],"Pro 内容控件编辑器","classic","zh-CN",{"navigationTitle":165,"license":23},true,51,"\u002Fplugins\u002Freference\u002Fclassic-word-content-control","Classic 产品扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fclassic-word-content-control.zh-CN","1UaVzk61shnK5Wdd51ZDjP3hTzKj7YQuORwfup-sbdk",1793045221369]