[{"data":1,"prerenderedAt":636},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset":3},{"id":4,"title":5,"body":6,"description":12,"extension":624,"keywords":625,"locale":628,"meta":629,"navigation":141,"order":630,"path":631,"section":632,"seo":633,"stem":634,"__hash__":635},"docs\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset.en.md","createBlockEditorPreset",{"type":7,"value":8,"toc":597},"minimark",[9,13,24,29,35,80,89,93,109,112,169,177,181,184,187,191,194,199,202,208,214,222,226,229,234,239,242,245,249,253,257,260,264,268,271,274,278,282,285,288,292,296,299,302,307,311,317,320,323,328,332,338,342,345,350,354,360,364,367,372,376,382,386,389,394,398,404,408,411,416,420,426,429,432,437,441,447,450,453,458,462,468,472,475,480,484,490,494,497,502,506,512,515,518,523,527,533,537,540,545,549,555,559,562,565,569,581,593],[10,11,12],"p",{},"Returns the Block content extension array for independent Core or custom products. It does not mount HTML View; unset children use preset defaults and false disables them.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fblock-editor"," · ",[21,22,23],"strong",{},"AGPL-3.0-only",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Block product integration",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Editor",[45,49,50],{},"Status",[45,52,53],{},"Assembly and boundaries",[55,56,57,69],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Unsupported",[60,67,68],{},"This entry targets continuous-flow Block, not the paginated Classic product. Use the corresponding shared or Word capability with Classic assembly.",[42,70,71,74,77],{},[60,72,73],{},"Block",[60,75,76],{},"Supported",[60,78,79],{},"createBlockEditor accepts a preset options object or false and calls this function internally. Independent Core hosts spread its returned extensions and register their own View.",[10,81,82,83,88],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[84,85,87],"a",{"href":86},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,90,92],{"id":91},"installation","Installation",[94,95,100],"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fblock-editor@alpha\n","sh","",[16,101,102],{"__ignoreMap":99},[103,104,107],"span",{"class":105,"line":106},"line",1,[103,108,97],{},[10,110,111],{},"This exports or returns an extension array. Spread its elements into Core extensions; do not nest the array as one extension or treat it as a Classic product preset.",[94,113,117],{"className":114,"code":115,"language":116,"meta":99,"style":99},"language-ts shiki shiki-themes github-light github-light github-dark","import { createBlockEditorPreset } from '@quirekit\u002Fblock-editor'\n\nconst extensions = createBlockEditorPreset({ characterCount: { limit: 5000 } })\n","ts",[16,118,119,136,143],{"__ignoreMap":99},[103,120,121,125,129,132],{"class":105,"line":106},[103,122,124],{"class":123},"sDD9d","import",[103,126,128],{"class":127},"sVPnS"," { createBlockEditorPreset } ",[103,130,131],{"class":123},"from",[103,133,135],{"class":134},"s-HEn"," '@quirekit\u002Fblock-editor'\n",[103,137,139],{"class":105,"line":138},2,[103,140,142],{"emptyLinePlaceholder":141},true,"\n",[103,144,146,149,153,156,160,163,166],{"class":105,"line":145},3,[103,147,148],{"class":123},"const",[103,150,152],{"class":151},"sUNQB"," extensions",[103,154,155],{"class":123}," =",[103,157,159],{"class":158},"sgQzM"," createBlockEditorPreset",[103,161,162],{"class":127},"({ characterCount: { limit: ",[103,164,165],{"class":151},"5000",[103,167,168],{"class":127}," } })\n",[10,170,171,172,176],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[84,173,175],{"href":174},"\u002Fen\u002Fsupport","support and licensing",".",[25,178,180],{"id":179},"integration-by-editor","Integration by editor",[10,182,183],{},"These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.",[185,186],"plugin-integration",{"name":5},[25,188,190],{"id":189},"configuration","Configuration",[10,192,193],{},"Pass these fields to the factory options. Required ports come from the host. undefined means no explicit option; documented factory fallbacks apply.",[195,196,198],"h3",{"id":197},"richcontent","richContent",[10,200,201],{},"Columns, reusable recipes, web cards and portable media; optional host storage and metadata.",[10,203,204,205],{},"Type：",[16,206,207],{},"false | Partial\u003CBlockRichContentOptions>",[10,209,210,211],{},"Default：",[16,212,213],{},"{}",[10,215,216,217,221],{},"See ",[84,218,220],{"href":219},"\u002Fen\u002Fplugins\u002Freference\u002Fblock-rich-content","BlockRichContent"," for child settings. Only pass false when this field's type permits it.",[195,223,225],{"id":224},"bodycontent","bodyContent",[10,227,228],{},"Footnotes, definition lists, dates and Unicode emoji authoring.",[10,230,204,231],{},[16,232,233],{},"false",[10,235,210,236],{},[16,237,238],{},"undefined",[195,240,241],{"id":241},"math",[10,243,244],{},"Inline and standalone formulas with shared visual authoring.",[10,246,204,247],{},[16,248,233],{},[10,250,210,251],{},[16,252,238],{},[195,254,256],{"id":255},"paragraphformat","paragraphFormat",[10,258,259],{},"Paragraph alignment, indentation and spacing from the open Word paragraph model.",[10,261,204,262],{},[16,263,233],{},[10,265,210,266],{},[16,267,238],{},[195,269,270],{"id":270},"containers",[10,272,273],{},"Editable highlighter, named callout and disclosure containers.",[10,275,204,276],{},[16,277,233],{},[10,279,210,280],{},[16,281,238],{},[195,283,284],{"id":284},"image",[10,286,287],{},"Persistent image blocks with shared display controls.",[10,289,204,290],{},[16,291,233],{},[10,293,210,294],{},[16,295,238],{},[195,297,298],{"id":298},"search",[10,300,301],{},"Transient find\u002Freplace; false omits search controls and commands.",[10,303,204,304],{},[16,305,306],{},"false | Partial\u003CSearchExtensionOptions>",[10,308,210,309],{},[16,310,238],{},[10,312,216,313,221],{},[84,314,316],{"href":315},"\u002Fen\u002Fplugins\u002Freference\u002Fsearch","Search",[195,318,319],{"id":319},"formatting",[10,321,322],{},"Character formatting clipboard and clearing; false omits the feature.",[10,324,204,325],{},[16,326,327],{},"false | Partial\u003CFormattingOptions>",[10,329,210,330],{},[16,331,238],{},[10,333,216,334,221],{},[84,335,337],{"href":336},"\u002Fen\u002Fplugins\u002Freference\u002Fformatting","Formatting",[195,339,341],{"id":340},"blockinteraction","blockInteraction",[10,343,344],{},"Stable structural block actions; false omits the block menu.",[10,346,204,347],{},[16,348,349],{},"false | Partial\u003CBlockInteractionOptions>",[10,351,210,352],{},[16,353,238],{},[10,355,216,356,221],{},[84,357,359],{"href":358},"\u002Fen\u002Fplugins\u002Freference\u002Fblock-interaction","BlockInteraction",[195,361,363],{"id":362},"dataview","dataView",[10,365,366],{},"Portable table and board objects; false omits the feature.",[10,368,204,369],{},[16,370,371],{},"false | Partial\u003CDataViewOptions>",[10,373,210,374],{},[16,375,238],{},[10,377,216,378,221],{},[84,379,381],{"href":380},"\u002Fen\u002Fplugins\u002Freference\u002Fdata-view","DataView",[195,383,385],{"id":384},"textdiagram","textDiagram",[10,387,388],{},"Shared local Mermaid, PlantUML and DOT source authoring; false omits the feature.",[10,390,204,391],{},[16,392,393],{},"false | Partial\u003CTextDiagramOptions>",[10,395,210,396],{},[16,397,238],{},[10,399,216,400,221],{},[84,401,403],{"href":402},"\u002Fen\u002Fplugins\u002Freference\u002Ftext-diagram","TextDiagram",[195,405,407],{"id":406},"mindmap","mindMap",[10,409,410],{},"Editable mind map objects; false explicitly omits the feature.",[10,412,204,413],{},[16,414,415],{},"false | Partial\u003CMindMapOptions>",[10,417,210,418],{},[16,419,238],{},[10,421,216,422,221],{},[84,423,425],{"href":424},"\u002Fen\u002Fplugins\u002Freference\u002Fmind-map","MindMap",[195,427,428],{"id":428},"flowchart",[10,430,431],{},"Editable flowchart objects; false explicitly omits the feature.",[10,433,204,434],{},[16,435,436],{},"false | Partial\u003CFlowchartOptions>",[10,438,210,439],{},[16,440,238],{},[10,442,216,443,221],{},[84,444,446],{"href":445},"\u002Fen\u002Fplugins\u002Freference\u002Fflowchart","Flowchart",[195,448,449],{"id":449},"whiteboard",[10,451,452],{},"Source-backed whiteboard blocks; false explicitly omits the feature.",[10,454,204,455],{},[16,456,457],{},"false | Partial\u003CWhiteboardOptions>",[10,459,210,460],{},[16,461,238],{},[10,463,216,464,221],{},[84,465,467],{"href":466},"\u002Fen\u002Fplugins\u002Freference\u002Fwhiteboard","Whiteboard",[195,469,471],{"id":470},"starterkit","starterKit",[10,473,474],{},"StarterKit configuration, or false when supplying a replacement schema.",[10,476,204,477],{},[16,478,479],{},"false | Partial\u003CStarterKitOptions>",[10,481,210,482],{},[16,483,238],{},[10,485,216,486,221],{},[84,487,489],{"href":488},"\u002Fen\u002Fplugins\u002Freference\u002Fstarter-kit","StarterKit",[195,491,493],{"id":492},"textstyle","textStyle",[10,495,496],{},"Existing text-style commands and marks, or false to omit the bundle.",[10,498,204,499],{},[16,500,501],{},"false | Partial\u003CTextStyleKitOptions>",[10,503,210,504],{},[16,505,238],{},[10,507,216,508,221],{},[84,509,511],{"href":510},"\u002Fen\u002Fplugins\u002Freference\u002Ftext-style-kit","TextStyleKit",[195,513,514],{"id":514},"link",[10,516,517],{},"Link semantics and recognition, or false to omit the mark.",[10,519,204,520],{},[16,521,522],{},"false | Partial\u003CLinkOptions>",[10,524,210,525],{},[16,526,238],{},[10,528,216,529,221],{},[84,530,532],{"href":531},"\u002Fen\u002Fplugins\u002Freference\u002Flink","Link",[195,534,536],{"id":535},"charactercount","characterCount",[10,538,539],{},"On-demand statistics; limits are disabled unless explicitly configured.",[10,541,204,542],{},[16,543,544],{},"false | Partial\u003CCharacterCountOptions>",[10,546,210,547],{},[16,548,238],{},[10,550,216,551,221],{},[84,552,554],{"href":553},"\u002Fen\u002Fplugins\u002Freference\u002Fcharacter-count","CharacterCount",[25,556,558],{"id":557},"commands-and-runtime","Commands and runtime",[10,560,561],{},"This entry declares no directly enumerable commands. Children supply bundle commands; product plugins use contributions or document services.",[10,563,564],{},"This returns content extensions rather than a ClassicEditorPreset object. Unset children use the preset's assembly and options override selected children. Media, authoring workspaces and the full Block product retain their own mounting\u002Fpersistence contracts.",[25,566,568],{"id":567},"next-steps","Next steps",[10,570,571,572,576,577,580],{},"Return to ",[84,573,575],{"href":574},"\u002Fen\u002Fplugins","all plugins",", or read ",[84,578,189],{"href":579},"\u002Fen\u002Fplugins\u002Fconfiguration"," to distinguish options, attributes and commands.",[10,582,216,583,587,588,592],{},[84,584,586],{"href":585},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[84,589,591],{"href":590},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[594,595,596],"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}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}",{"title":99,"searchDepth":138,"depth":138,"links":598},[599,600,601,602,622,623],{"id":27,"depth":138,"text":28},{"id":91,"depth":138,"text":92},{"id":179,"depth":138,"text":180},{"id":189,"depth":138,"text":190,"children":603},[604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621],{"id":197,"depth":145,"text":198},{"id":224,"depth":145,"text":225},{"id":241,"depth":145,"text":241},{"id":255,"depth":145,"text":256},{"id":270,"depth":145,"text":270},{"id":284,"depth":145,"text":284},{"id":298,"depth":145,"text":298},{"id":319,"depth":145,"text":319},{"id":340,"depth":145,"text":341},{"id":362,"depth":145,"text":363},{"id":384,"depth":145,"text":385},{"id":406,"depth":145,"text":407},{"id":428,"depth":145,"text":428},{"id":449,"depth":145,"text":449},{"id":470,"depth":145,"text":471},{"id":492,"depth":145,"text":493},{"id":514,"depth":145,"text":514},{"id":535,"depth":145,"text":536},{"id":557,"depth":138,"text":558},{"id":567,"depth":138,"text":568},"md",[5,18,626,627,198,225,241,256,270,284,298,319,341,363,385,407,428,449,471,493,514,536,5],"Block 内容预设","block","en",{"navigationTitle":5,"license":23},75,"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","Block product extensions",{"title":5,"description":12},"plugins\u002Freference\u002Fcreate-block-editor-preset.en","o2hpzpVhtNqpntOA-uETP-iN3fmy_P_eqdcGHifPqD4",1793045233198]