[{"data":1,"prerenderedAt":388},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Flanguage":3},{"id":4,"title":5,"body":6,"description":12,"extension":375,"keywords":376,"locale":379,"meta":380,"navigation":381,"order":382,"path":383,"section":384,"seo":385,"stem":386,"__hash__":387},"docs\u002Fplugins\u002Freference\u002Flanguage.en.md","Language",{"type":7,"value":8,"toc":363},"minimark",[9,13,24,29,35,88,96,100,116,124,148,155,159,162,165,169,175,179,182,188,194,198,201,323,331,335,346,359],[10,11,12],"p",{},"Stores independent script-language slots for text semantics and proofing. It does not translate content or change UI language.",[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],{},"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-text-style@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",".",[101,125,129],{"className":126,"code":127,"language":128,"meta":106,"style":106},"language-ts shiki shiki-themes github-light github-light github-dark","import { Language } from '@quirekit\u002Fextension-text-style'\n","ts",[16,130,131],{"__ignoreMap":106},[110,132,133,137,141,144],{"class":112,"line":113},[110,134,136],{"class":135},"sDD9d","import",[110,138,140],{"class":139},"sVPnS"," { Language } ",[110,142,143],{"class":135},"from",[110,145,147],{"class":146},"s-HEn"," '@quirekit\u002Fextension-text-style'\n",[10,149,150,151,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,152,154],{"href":153},"\u002Fen\u002Fsupport","support and licensing",[25,156,158],{"id":157},"integration-by-editor","Integration by editor",[10,160,161],{},"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.",[163,164],"plugin-integration",{"name":5},[25,166,168],{"id":167},"configuration","Configuration",[10,170,171,172,123],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,173,167],{"href":174},"\u002Fen\u002Fplugins\u002Fconfiguration",[176,177,178],"h3",{"id":178},"types",[10,180,181],{},"Mark types where the attribute can be applied.",[10,183,184,185],{},"Type：",[16,186,187],{},"string[]",[10,189,190,191],{},"Default：",[16,192,193],{},"[\"textStyle\"]",[25,195,197],{"id":196},"commands-and-runtime","Commands and runtime",[10,199,200],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,202,203,213],{},[39,204,205],{},[42,206,207,210],{},[45,208,209],{},"Command",[45,211,212],{},"Parameter signature",[55,214,215,227,239,251,263,275,287,299,311],{},[42,216,217,222],{},[60,218,219],{},[16,220,221],{},"setLanguage",[60,223,224],{},[16,225,226],{},"setLanguage(language: string)",[42,228,229,234],{},[60,230,231],{},[16,232,233],{},"setLanguageSlots",[60,235,236],{},[16,237,238],{},"setLanguageSlots(languages: RunLanguageSlots)",[42,240,241,246],{},[60,242,243],{},[16,244,245],{},"unsetLanguage",[60,247,248],{},[16,249,250],{},"unsetLanguage()",[42,252,253,258],{},[60,254,255],{},[16,256,257],{},"setLatinLanguage",[60,259,260],{},[16,261,262],{},"setLatinLanguage(language: string)",[42,264,265,270],{},[60,266,267],{},[16,268,269],{},"unsetLatinLanguage",[60,271,272],{},[16,273,274],{},"unsetLatinLanguage()",[42,276,277,282],{},[60,278,279],{},[16,280,281],{},"setEastAsiaLanguage",[60,283,284],{},[16,285,286],{},"setEastAsiaLanguage(language: string)",[42,288,289,294],{},[60,290,291],{},[16,292,293],{},"unsetEastAsiaLanguage",[60,295,296],{},[16,297,298],{},"unsetEastAsiaLanguage()",[42,300,301,306],{},[60,302,303],{},[16,304,305],{},"setComplexScriptLanguage",[60,307,308],{},[16,309,310],{},"setComplexScriptLanguage(language: string)",[42,312,313,318],{},[60,314,315],{},[16,316,317],{},"unsetComplexScriptLanguage",[60,319,320],{},[16,321,322],{},"unsetComplexScriptLanguage()",[10,324,325,326,330],{},"These are parameter signatures. See ",[69,327,329],{"href":328},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,332,334],{"id":333},"next-steps","Next steps",[10,336,337,338,342,343,345],{},"Return to ",[69,339,341],{"href":340},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,344,167],{"href":174}," to distinguish options, attributes and commands.",[10,347,348,349,353,354,358],{},"See ",[69,350,352],{"href":351},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,355,357],{"href":356},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[360,361,362],"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":364,"depth":364,"links":365},2,[366,367,368,369,373,374],{"id":27,"depth":364,"text":28},{"id":98,"depth":364,"text":99},{"id":157,"depth":364,"text":158},{"id":167,"depth":364,"text":168,"children":370},[371],{"id":178,"depth":372,"text":178},3,{"id":196,"depth":364,"text":197},{"id":333,"depth":364,"text":334},"md",[5,18,377,378,178,221,233,245,257,269,281,293,305,317,5],"文字语言","marks","en",{"navigationTitle":5,"license":23},true,112,"\u002Fen\u002Fplugins\u002Freference\u002Flanguage","Marks and text styles",{"title":5,"description":12},"plugins\u002Freference\u002Flanguage.en","wH_ETTbBDVVRy6c0JVcgM9cT7xG7Kp-hTk8SI0g3b_8",1793045227350]