[{"data":1,"prerenderedAt":234},["ShallowReactive",2],{"quirekit-doc:\u002Fplugins\u002Freference\u002Fcreate-block-paragraph-extensions":3},{"id":4,"title":5,"body":6,"description":12,"extension":221,"keywords":222,"locale":225,"meta":226,"navigation":227,"order":228,"path":229,"section":230,"seo":231,"stem":232,"__hash__":233},"docs\u002Fplugins\u002Freference\u002Fcreate-block-paragraph-extensions.zh-CN.md","createBlockParagraphExtensions · Block 段落格式",{"type":7,"value":8,"toc":212},"minimark",[9,13,24,28,34,84,92,95,111,118,142,150,153,164,168,171,174,177,180,183,196,208],[10,11,12],"p",{},"返回段落对齐、缩进与间距的扩展数组，基于 MIT 的 Word 段落模型并投影为连续 HTML 的样式；不安装分页符与分栏符。Block 默认预设已包含，关闭预设的 paragraphFormat 后可单独装配。",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fblock-editor"," · ",[21,22,23],"strong",{},"AGPL-3.0-only",[25,26,27],"h2",{"id":27},"编辑器适用范围",[10,29,30,31],{},"层次：",[21,32,33],{},"Block 产品适配",[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],{},"该入口面向 Block 连续流，不接入 Classic 分页产品。需要共享语义时选择相应 Word 或通用能力及 Classic 装配。",[41,69,70,73,76],{},[59,71,72],{},"Block",[59,74,75],{},"直接支持",[59,77,78,83],{},[79,80,82],"a",{"href":81},"\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — createBlockEditor 默认预设已装配此能力。通过 preset 中对应子项配置；图形编辑使用预设注入的工作区，宿主仍负责保存和资源。不要重复安装同名扩展。",[10,85,86,87,91],{},"“直接支持”指已有上述产品装配；具体交互、宿主服务和格式支持仍有各自条件。",[79,88,90],{"href":89},"\u002Fplugins\u002Fcompatibility","状态与接入规则","。许可独立显示。",[25,93,94],{"id":94},"接入",[96,97,102],"pre",{"className":98,"code":99,"language":100,"meta":101,"style":101},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fblock-editor@alpha\n","sh","",[16,103,104],{"__ignoreMap":101},[105,106,109],"span",{"class":107,"line":108},"line",1,[105,110,99],{},[10,112,113,114,117],{},"此入口导出或返回扩展数组。把数组展开合并到 Core 的 ",[16,115,116],{},"extensions","，不要把整个数组当作一个扩展，也不要把它当作 Classic 产品 preset 对象。",[96,119,123],{"className":120,"code":121,"language":122,"meta":101,"style":101},"language-ts shiki shiki-themes github-light github-light github-dark","import { createBlockParagraphExtensions } from '@quirekit\u002Fblock-editor'\n","ts",[16,124,125],{"__ignoreMap":101},[105,126,127,131,135,138],{"class":107,"line":108},[105,128,130],{"class":129},"sDD9d","import",[105,132,134],{"class":133},"sVPnS"," { createBlockParagraphExtensions } ",[105,136,137],{"class":129},"from",[105,139,141],{"class":140},"s-HEn"," '@quirekit\u002Fblock-editor'\n",[10,143,144,145,149],{},"安装时按包声明选择兼容版本，外部可用版本以分发源为准。本站使用工作区 Alpha；许可标签来自入口所属包，使用条件见",[79,146,148],{"href":147},"\u002Fsupport","支持与许可","。",[25,151,152],{"id":152},"按编辑器接入",[10,154,155,156,159,160,163],{},"以下片段沿用已挂载的宿主元素 ",[16,157,158],{},"element","，宿主负责容器尺寸与保存；退出页面时调用 ",[16,161,162],{},"instance.destroy()","。已有预设装配的能力不要再重复追加；需要宿主端口的入口应先完成下方配置。",[165,166],"plugin-integration",{"name":167},"createBlockParagraphExtensions",[25,169,170],{"id":170},"配置",[10,172,173],{},"此入口没有独立的配置字段。文档属性通过领域命令设置；产品预设可能继续装配其他可配置子扩展。",[25,175,176],{"id":176},"命令与运行方式",[10,178,179],{},"此入口没有直接声明可枚举的命令。组合扩展的命令由子扩展提供；产品插件通过 contribution 或文件服务工作。不能把安装入口名称当作命令调用。",[25,181,182],{"id":182},"下一步",[10,184,185,186,190,191,195],{},"返回",[79,187,189],{"href":188},"\u002Fplugins","全部插件","，或阅读",[79,192,194],{"href":193},"\u002Fplugins\u002Fconfiguration","配置插件","区分配置、文档属性与命令。",[10,197,198,199,203,204,149],{},"自己定义能力时见",[79,200,202],{"href":201},"\u002Fbuild\u002Fextension","扩展开发","；搭建完整宿主时见",[79,205,207],{"href":206},"\u002Fbuild","构建产品",[209,210,211],"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":101,"searchDepth":213,"depth":213,"links":214},2,[215,216,217,218,219,220],{"id":27,"depth":213,"text":27},{"id":94,"depth":213,"text":94},{"id":152,"depth":213,"text":152},{"id":170,"depth":213,"text":170},{"id":176,"depth":213,"text":176},{"id":182,"depth":213,"text":182},"md",[167,18,223,224,167],"Block 段落格式","block","zh-CN",{"navigationTitle":167,"license":23},true,77,"\u002Fplugins\u002Freference\u002Fcreate-block-paragraph-extensions","Block 产品扩展",{"title":5,"description":12},"plugins\u002Freference\u002Fcreate-block-paragraph-extensions.zh-CN","A-0LKmj0f9vHCXrxmGY78btcjMrc9P4cE_8hQdoZjKc",1793045219454]