[{"data":1,"prerenderedAt":292},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fparagraph":3},{"id":4,"title":5,"body":6,"description":12,"extension":279,"keywords":280,"locale":283,"meta":284,"navigation":285,"order":286,"path":287,"section":288,"seo":289,"stem":290,"__hash__":291},"docs\u002Fplugins\u002Freference\u002Fparagraph.zh-CN.md","Paragraph · 段落",{"type":7,"value":8,"toc":266},"minimark",[9,13,24,28,34,87,95,98,114,126,137,161,168,171,182,186,189,196,201,204,210,216,219,222,225,236,239,250,262],[10,11,12],"p",{},"提供普通正文段落。段落是标题、列表和引用等块之间最常见的输入位置；HTML 对应 p 元素。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-paragraph"," · ",[21,22,23],"strong",{},"MIT",[25,26,27],"h2",{"id":27},"编辑器适用范围",[10,29,30,31],{},"层次：",[21,32,33],{},"共享文档能力",[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\u002Fclassic-editor-preset","classicEditorPreset"," — 使用产品中立的 classicEditorPreset；已有能力由预设装配，不要重复追加。Word 预设会替换段落、标题和容器列表，不能把通用结构直接叠加到 Word 模型。",[41,74,75,78,80],{},[59,76,77],{},"Block",[59,79,64],{},[59,81,82,86],{},[68,83,85],{"href":84},"\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — createBlockEditor 默认预设已装配此能力。通过 preset 中对应子项配置；图形编辑使用预设注入的工作区，宿主仍负责保存和资源。不要重复安装同名扩展。",[10,88,89,90,94],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[68,91,93],{"href":92},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,96,97],{"id":97},"接入",[99,100,105],"pre",{"className":101,"code":102,"language":103,"meta":104,"style":104},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-paragraph@alpha\n","sh","",[16,106,107],{"__ignoreMap":104},[108,109,112],"span",{"class":110,"line":111},"line",1,[108,113,102],{},[10,115,116,117,120,121,125],{},"在创建 Editor 时放入 ",[16,118,119],{},"extensions","。挂载容器、视图和保存由宿主提供，见",[68,122,124],{"href":123},"\u002Fguide\u002Fquick-start","快速开始","。",[10,127,128,129,132,133,136],{},"StarterKit 已包含此能力，在 ",[16,130,131],{},"StarterKit.configure()"," 的 ",[16,134,135],{},"paragraph"," 子项中配置；设为 false 后才能单独安装同名替代。",[99,138,142],{"className":139,"code":140,"language":141,"meta":104,"style":104},"language-ts shiki shiki-themes github-light github-light github-dark","import { Paragraph } from '@quirekit\u002Fextension-paragraph'\n","ts",[16,143,144],{"__ignoreMap":104},[108,145,146,150,154,157],{"class":110,"line":111},[108,147,149],{"class":148},"sDD9d","import",[108,151,153],{"class":152},"sVPnS"," { Paragraph } ",[108,155,156],{"class":148},"from",[108,158,160],{"class":159},"s-HEn"," '@quirekit\u002Fextension-paragraph'\n",[10,162,163,164,125],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[68,165,167],{"href":166},"\u002Fsupport","支持与许可",[25,169,170],{"id":170},"按编辑器接入",[10,172,173,174,177,178,181],{},"以下片段沿用已挂载的宿主元素 ",[16,175,176],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,179,180],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[183,184],"plugin-integration",{"name":185},"Paragraph",[25,187,188],{"id":188},"配置",[10,190,191,192,125],{},"下面是扩展自身的默认选项。预设可以覆盖这些值；它们不等于当前文档属性。配置方法见",[68,193,195],{"href":194},"\u002Fplugins\u002Fconfiguration","配置插件",[197,198,200],"h3",{"id":199},"htmlattributes","HTMLAttributes",[10,202,203],{},"序列化 HTML 时合并的属性，例如 class。它不修改 Canvas 排版，也不是文档中节点属性的默认值。",[10,205,206,207],{},"类型：",[16,208,209],{},"Record\u003Cstring, unknown>",[10,211,212,213],{},"默认：",[16,214,215],{},"{}",[25,217,218],{"id":218},"命令与运行方式",[10,220,221],{},"此入口没有直接声明可枚举的命令。组合扩展的命令由子扩展提供；产品插件通过 contribution 或文件服务工作。不能把安装入口名称当作命令调用。",[25,223,224],{"id":224},"其他公开入口",[226,227,228],"ul",{},[229,230,231,19,233],"li",{},[16,232,185],{},[16,234,235],{},"@quirekit\u002Fstarter-kit",[25,237,238],{"id":238},"下一步",[10,240,241,242,246,247,249],{},"返回",[68,243,245],{"href":244},"\u002Fplugins","全部插件","，或阅读",[68,248,195],{"href":194},"区分配置、文档属性与命令。",[10,251,252,253,257,258,125],{},"自己定义能力时见",[68,254,256],{"href":255},"\u002Fbuild\u002Fextension","扩展开发","；搭建完整宿主时见",[68,259,261],{"href":260},"\u002Fbuild","构建产品",[263,264,265],"style",{},"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);}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}",{"title":104,"searchDepth":267,"depth":267,"links":268},2,[269,270,271,272,276,277,278],{"id":27,"depth":267,"text":27},{"id":97,"depth":267,"text":97},{"id":170,"depth":267,"text":170},{"id":188,"depth":267,"text":188,"children":273},[274],{"id":199,"depth":275,"text":200},3,{"id":218,"depth":267,"text":218},{"id":224,"depth":267,"text":224},{"id":238,"depth":267,"text":238},"md",[185,18,281,282,200,185,185],"段落","nodes","zh-CN",{"navigationTitle":185,"license":23},true,123,"\u002Fplugins\u002Freference\u002Fparagraph","基础节点",{"title":5,"description":12},"plugins\u002Freference\u002Fparagraph.zh-CN","e3lnAIS4XBuxAj0u47d3YlCjPgbqcFkGhCY7ewDGcGw",1793045211802]