[{"data":1,"prerenderedAt":327},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fdocument":3},{"id":4,"title":5,"body":6,"description":12,"extension":314,"keywords":315,"locale":318,"meta":319,"navigation":320,"order":321,"path":322,"section":323,"seo":324,"stem":325,"__hash__":326},"docs\u002Fplugins\u002Freference\u002Fdocument.en.md","Document",{"type":7,"value":8,"toc":304},"minimark",[9,13,24,29,35,88,96,100,116,124,131,155,162,166,169,172,176,179,183,186,248,256,260,271,275,287,300],[10,11,12],"p",{},"Defines the document root and its block content. A minimal schema also needs Paragraph and Text.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-document"," · ",[21,22,23],"strong",{},"MIT",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Shared document capability",[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,74],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Supported",[60,67,68,73],{},[69,70,72],"a",{"href":71},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-preset","classicEditorPreset"," — Use the product-neutral classicEditorPreset without duplicating installed capabilities. The Word preset replaces paragraphs, headings and container lists; do not stack generic structures onto that model.",[42,75,76,79,81],{},[60,77,78],{},"Block",[60,80,65],{},[60,82,83,87],{},[69,84,86],{"href":85},"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — The default createBlockEditor preset installs this capability. Configure the corresponding preset child; graphic editing uses the preset's workspace ports, while persistence and assets remain host-owned. Avoid duplicate extensions.",[10,89,90,91,95],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,92,94],{"href":93},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,97,99],{"id":98},"installation","Installation",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-document@alpha\n","sh","",[16,108,109],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,104],{},[10,117,118,119,123],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,120,122],{"href":121},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[10,125,126,127,130],{},"Included in StarterKit. Configure its ",[16,128,129],{},"document"," child, or disable that child before installing a replacement.",[101,132,136],{"className":133,"code":134,"language":135,"meta":106,"style":106},"language-ts shiki shiki-themes github-light github-light github-dark","import { Document } from '@quirekit\u002Fextension-document'\n","ts",[16,137,138],{"__ignoreMap":106},[110,139,140,144,148,151],{"class":112,"line":113},[110,141,143],{"class":142},"sDD9d","import",[110,145,147],{"class":146},"sVPnS"," { Document } ",[110,149,150],{"class":142},"from",[110,152,154],{"class":153},"s-HEn"," '@quirekit\u002Fextension-document'\n",[10,156,157,158,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,159,161],{"href":160},"\u002Fen\u002Fsupport","support and licensing",[25,163,165],{"id":164},"integration-by-editor","Integration by editor",[10,167,168],{},"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.",[170,171],"plugin-integration",{"name":5},[25,173,175],{"id":174},"configuration","Configuration",[10,177,178],{},"This entry has no independent configuration fields. Set document attributes through domain commands; presets may install other configurable children.",[25,180,182],{"id":181},"commands-and-runtime","Commands and runtime",[10,184,185],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,187,188,198],{},[39,189,190],{},[42,191,192,195],{},[45,193,194],{},"Command",[45,196,197],{},"Parameter signature",[55,199,200,212,224,236],{},[42,201,202,207],{},[60,203,204],{},[16,205,206],{},"setDocumentFontFamily",[60,208,209],{},[16,210,211],{},"setDocumentFontFamily(family: string)",[42,213,214,219],{},[60,215,216],{},[16,217,218],{},"setDocumentLatinFontFamily",[60,220,221],{},[16,222,223],{},"setDocumentLatinFontFamily(family: string)",[42,225,226,231],{},[60,227,228],{},[16,229,230],{},"setDocumentEastAsiaFontFamily",[60,232,233],{},[16,234,235],{},"setDocumentEastAsiaFontFamily(family: string)",[42,237,238,243],{},[60,239,240],{},[16,241,242],{},"setDocumentFontTheme",[60,244,245],{},[16,246,247],{},"setDocumentFontTheme(patch: DocumentFontThemePatch)",[10,249,250,251,255],{},"These are parameter signatures. See ",[69,252,254],{"href":253},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,257,259],{"id":258},"other-public-exports","Other public exports",[261,262,263],"ul",{},[264,265,266,19,268],"li",{},[16,267,5],{},[16,269,270],{},"@quirekit\u002Fstarter-kit",[25,272,274],{"id":273},"next-steps","Next steps",[10,276,277,278,282,283,286],{},"Return to ",[69,279,281],{"href":280},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,284,174],{"href":285},"\u002Fen\u002Fplugins\u002Fconfiguration"," to distinguish options, attributes and commands.",[10,288,289,290,294,295,299],{},"See ",[69,291,293],{"href":292},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,296,298],{"href":297},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[301,302,303],"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":106,"searchDepth":305,"depth":305,"links":306},2,[307,308,309,310,311,312,313],{"id":27,"depth":305,"text":28},{"id":98,"depth":305,"text":99},{"id":164,"depth":305,"text":165},{"id":174,"depth":305,"text":175},{"id":181,"depth":305,"text":182},{"id":258,"depth":305,"text":259},{"id":273,"depth":305,"text":274},"md",[5,18,316,317,206,218,230,242,5,5],"文档根节点","nodes","en",{"navigationTitle":5,"license":23},true,91,"\u002Fen\u002Fplugins\u002Freference\u002Fdocument","Content nodes",{"title":5,"description":12},"plugins\u002Freference\u002Fdocument.en","G-U3nmMEDn7MxbmrE2_CIg8kG1q9hneSY7q69bK2nzA",1793045226283]