[{"data":1,"prerenderedAt":513},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Ftext-style-kit":3},{"id":4,"title":5,"body":6,"description":12,"extension":501,"keywords":502,"locale":505,"meta":506,"navigation":154,"order":507,"path":508,"section":509,"seo":510,"stem":511,"__hash__":512},"docs\u002Fplugins\u002Freference\u002Ftext-style-kit.en.md","TextStyleKit",{"type":7,"value":8,"toc":481},"minimark",[9,13,24,29,35,89,97,101,117,125,185,192,196,199,202,206,212,217,220,226,232,240,243,246,251,255,261,264,267,271,275,281,285,288,293,297,303,306,309,313,317,323,327,330,334,338,344,348,351,355,359,365,369,372,376,380,386,389,392,396,400,406,410,413,418,422,428,432,435,439,450,454,465,477],[10,11,12],"p",{},"Bundles TextStyle and its typography\u002Fcolor\u002Flanguage companions. Highlight and font resources are separate.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-text-style"," · ",[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],{},"Requires integration",[60,67,68,73],{},[69,70,72],"a",{"href":71},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-formatting","ClassicEditorFormatting"," — Classic uses ClassicEditorFormatting for text styles and controls. Start with the default preset and configure its adapter fields instead of adding a duplicate TextStyleKit.",[42,75,76,79,82],{},[60,77,78],{},"Block",[60,80,81],{},"Supported",[60,83,84,88],{},[69,85,87],{"href":86},"\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,90,91,92,96],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,93,95],{"href":94},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,98,100],{"id":99},"installation","Installation",[102,103,108],"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-text-style@alpha\n","sh","",[16,109,110],{"__ignoreMap":107},[111,112,115],"span",{"class":113,"line":114},"line",1,[111,116,105],{},[10,118,119,120,124],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,121,123],{"href":122},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[102,126,130],{"className":127,"code":128,"language":129,"meta":107,"style":107},"language-ts shiki shiki-themes github-light github-light github-dark","import { TextStyleKit } from '@quirekit\u002Fextension-text-style'\n\nconst styles = TextStyleKit.configure({ backgroundColor: false })\n","ts",[16,131,132,149,156],{"__ignoreMap":107},[111,133,134,138,142,145],{"class":113,"line":114},[111,135,137],{"class":136},"sDD9d","import",[111,139,141],{"class":140},"sVPnS"," { TextStyleKit } ",[111,143,144],{"class":136},"from",[111,146,148],{"class":147},"s-HEn"," '@quirekit\u002Fextension-text-style'\n",[111,150,152],{"class":113,"line":151},2,[111,153,155],{"emptyLinePlaceholder":154},true,"\n",[111,157,159,162,166,169,172,176,179,182],{"class":113,"line":158},3,[111,160,161],{"class":136},"const",[111,163,165],{"class":164},"sUNQB"," styles",[111,167,168],{"class":136}," =",[111,170,171],{"class":140}," TextStyleKit.",[111,173,175],{"class":174},"sgQzM","configure",[111,177,178],{"class":140},"({ backgroundColor: ",[111,180,181],{"class":164},"false",[111,183,184],{"class":140}," })\n",[10,186,187,188,124],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,189,191],{"href":190},"\u002Fen\u002Fsupport","support and licensing",[25,193,195],{"id":194},"integration-by-editor","Integration by editor",[10,197,198],{},"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.",[200,201],"plugin-integration",{"name":5},[25,203,205],{"id":204},"configuration","Configuration",[10,207,208,209,124],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,210,204],{"href":211},"\u002Fen\u002Fplugins\u002Fconfiguration",[213,214,216],"h3",{"id":215},"doublestrike","doubleStrike",[10,218,219],{},"Double-strike extension options, or false to disable.",[10,221,222,223],{},"Type：",[16,224,225],{},"false | Partial\u003CDoubleStrikeOptions>",[10,227,228,229],{},"Default：",[16,230,231],{},"{}",[10,233,234,235,239],{},"See ",[69,236,238],{"href":237},"\u002Fen\u002Fplugins\u002Freference\u002Fdouble-strike","DoubleStrike"," for child settings. Only pass false when this field's type permits it.",[213,241,242],{"id":242},"superscript",[10,244,245],{},"Superscript extension options, or false to disable.",[10,247,222,248],{},[16,249,250],{},"false | Partial\u003CScriptPositionOptions>",[10,252,228,253],{},[16,254,231],{},[10,256,234,257,239],{},[69,258,260],{"href":259},"\u002Fen\u002Fplugins\u002Freference\u002Fsuperscript","Superscript",[213,262,263],{"id":263},"subscript",[10,265,266],{},"Subscript extension options, or false to disable.",[10,268,222,269],{},[16,270,250],{},[10,272,228,273],{},[16,274,231],{},[10,276,234,277,239],{},[69,278,280],{"href":279},"\u002Fen\u002Fplugins\u002Freference\u002Fsubscript","Subscript",[213,282,284],{"id":283},"fontfamily","fontFamily",[10,286,287],{},"Font family extension options, or false to disable.",[10,289,222,290],{},[16,291,292],{},"false | Partial\u003CTextStyleAttributeExtensionOptions>",[10,294,228,295],{},[16,296,231],{},[10,298,234,299,239],{},[69,300,302],{"href":301},"\u002Fen\u002Fplugins\u002Freference\u002Ffont-family","FontFamily",[213,304,305],{"id":305},"color",[10,307,308],{},"Color extension options, or false to disable.",[10,310,222,311],{},[16,312,292],{},[10,314,228,315],{},[16,316,231],{},[10,318,234,319,239],{},[69,320,322],{"href":321},"\u002Fen\u002Fplugins\u002Freference\u002Fcolor","Color",[213,324,326],{"id":325},"backgroundcolor","backgroundColor",[10,328,329],{},"Background color extension options, or false to disable.",[10,331,222,332],{},[16,333,292],{},[10,335,228,336],{},[16,337,231],{},[10,339,234,340,239],{},[69,341,343],{"href":342},"\u002Fen\u002Fplugins\u002Freference\u002Fbackground-color","BackgroundColor",[213,345,347],{"id":346},"fontsize","fontSize",[10,349,350],{},"Font size extension options, or false to disable.",[10,352,222,353],{},[16,354,292],{},[10,356,228,357],{},[16,358,231],{},[10,360,234,361,239],{},[69,362,364],{"href":363},"\u002Fen\u002Fplugins\u002Freference\u002Ffont-size","FontSize",[213,366,368],{"id":367},"letterspacing","letterSpacing",[10,370,371],{},"Word-compatible character-spacing options, or false to disable.",[10,373,222,374],{},[16,375,292],{},[10,377,228,378],{},[16,379,231],{},[10,381,234,382,239],{},[69,383,385],{"href":384},"\u002Fen\u002Fplugins\u002Freference\u002Fletter-spacing","LetterSpacing",[213,387,388],{"id":388},"language",[10,390,391],{},"Word-compatible run-language options, or false to disable.",[10,393,222,394],{},[16,395,292],{},[10,397,228,398],{},[16,399,231],{},[10,401,234,402,239],{},[69,403,405],{"href":404},"\u002Fen\u002Fplugins\u002Freference\u002Flanguage","Language",[213,407,409],{"id":408},"textstyle","textStyle",[10,411,412],{},"TextStyle mark options, or false to disable.",[10,414,222,415],{},[16,416,417],{},"false | Partial\u003CTextStyleOptions>",[10,419,228,420],{},[16,421,231],{},[10,423,234,424,239],{},[69,425,427],{"href":426},"\u002Fen\u002Fplugins\u002Freference\u002Ftext-style","TextStyle",[25,429,431],{"id":430},"commands-and-runtime","Commands and runtime",[10,433,434],{},"This entry declares no directly enumerable commands. Children supply bundle commands; product plugins use contributions or document services.",[25,436,438],{"id":437},"other-public-exports","Other public exports",[440,441,442],"ul",{},[443,444,445,19,448],"li",{},[16,446,447],{},"textStyleKitExtension",[16,449,18],{},[25,451,453],{"id":452},"next-steps","Next steps",[10,455,456,457,461,462,464],{},"Return to ",[69,458,460],{"href":459},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,463,204],{"href":211}," to distinguish options, attributes and commands.",[10,466,234,467,471,472,476],{},[69,468,470],{"href":469},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,473,475],{"href":474},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[478,479,480],"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":107,"searchDepth":151,"depth":151,"links":482},[483,484,485,486,498,499,500],{"id":27,"depth":151,"text":28},{"id":99,"depth":151,"text":100},{"id":194,"depth":151,"text":195},{"id":204,"depth":151,"text":205,"children":487},[488,489,490,491,492,493,494,495,496,497],{"id":215,"depth":158,"text":216},{"id":242,"depth":158,"text":242},{"id":263,"depth":158,"text":263},{"id":283,"depth":158,"text":284},{"id":305,"depth":158,"text":305},{"id":325,"depth":158,"text":326},{"id":346,"depth":158,"text":347},{"id":367,"depth":158,"text":368},{"id":388,"depth":158,"text":388},{"id":408,"depth":158,"text":409},{"id":430,"depth":151,"text":431},{"id":437,"depth":151,"text":438},{"id":452,"depth":151,"text":453},"md",[5,18,503,504,216,242,263,284,305,326,347,368,388,409,5,447],"文字样式预设","kits","en",{"navigationTitle":5,"license":23},140,"\u002Fen\u002Fplugins\u002Freference\u002Ftext-style-kit","Kits and bundles",{"title":5,"description":12},"plugins\u002Freference\u002Ftext-style-kit.en","t_-gPqjjDBTZ_hDNz93wndnGwko4y5TE08OIRPPuRf8",1793045226048]