[{"data":1,"prerenderedAt":687},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Ftext-style":3},{"id":4,"title":5,"body":6,"description":12,"extension":674,"keywords":675,"locale":678,"meta":679,"navigation":680,"order":681,"path":682,"section":683,"seo":684,"stem":685,"__hash__":686},"docs\u002Fplugins\u002Freference\u002Ftext-style.en.md","TextStyle",{"type":7,"value":8,"toc":660},"minimark",[9,13,24,29,35,88,96,100,116,124,148,155,159,162,165,169,175,180,183,189,195,199,202,207,212,216,219,605,613,617,628,632,643,656],[10,11,12],"p",{},"Stores direct character formatting on one textStyle mark. Install attribute extensions such as FontFamily or Color alongside it.",[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 { TextStyle } 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"," { TextStyle } ",[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,179],"h3",{"id":178},"htmlattributes","HTMLAttributes",[10,181,182],{},"HTML attributes added to serialized span elements.",[10,184,185,186],{},"Type：",[16,187,188],{},"Record\u003Cstring, unknown>",[10,190,191,192],{},"Default：",[16,193,194],{},"{}",[176,196,198],{"id":197},"mergenestedspanstyles","mergeNestedSpanStyles",[10,200,201],{},"Whether nested span styles should be merged before parsing.",[10,203,185,204],{},[16,205,206],{},"boolean",[10,208,191,209],{},[16,210,211],{},"true",[25,213,215],{"id":214},"commands-and-runtime","Commands and runtime",[10,217,218],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,220,221,231],{},[39,222,223],{},[42,224,225,228],{},[45,226,227],{},"Command",[45,229,230],{},"Parameter signature",[55,232,233,245,257,269,281,293,305,317,329,341,353,365,377,389,401,413,425,437,449,461,473,485,497,509,521,533,545,557,569,581,593],{},[42,234,235,240],{},[60,236,237],{},[16,238,239],{},"toggleTextStyle",[60,241,242],{},[16,243,244],{},"toggleTextStyle()",[42,246,247,252],{},[60,248,249],{},[16,250,251],{},"removeEmptyTextStyle",[60,253,254],{},[16,255,256],{},"removeEmptyTextStyle()",[42,258,259,264],{},[60,260,261],{},[16,262,263],{},"setTextScale",[60,265,266],{},[16,267,268],{},"setTextScale(percentage: number)",[42,270,271,276],{},[60,272,273],{},[16,274,275],{},"unsetTextScale",[60,277,278],{},[16,279,280],{},"unsetTextScale()",[42,282,283,288],{},[60,284,285],{},[16,286,287],{},"setAllCaps",[60,289,290],{},[16,291,292],{},"setAllCaps()",[42,294,295,300],{},[60,296,297],{},[16,298,299],{},"unsetAllCaps",[60,301,302],{},[16,303,304],{},"unsetAllCaps()",[42,306,307,312],{},[60,308,309],{},[16,310,311],{},"setSmallCaps",[60,313,314],{},[16,315,316],{},"setSmallCaps()",[42,318,319,324],{},[60,320,321],{},[16,322,323],{},"unsetSmallCaps",[60,325,326],{},[16,327,328],{},"unsetSmallCaps()",[42,330,331,336],{},[60,332,333],{},[16,334,335],{},"toggleBold",[60,337,338],{},[16,339,340],{},"toggleBold()",[42,342,343,348],{},[60,344,345],{},[16,346,347],{},"toggleItalic",[60,349,350],{},[16,351,352],{},"toggleItalic()",[42,354,355,360],{},[60,356,357],{},[16,358,359],{},"setDirectBoldState",[60,361,362],{},[16,363,364],{},"setDirectBoldState(value: DirectEmphasisState)",[42,366,367,372],{},[60,368,369],{},[16,370,371],{},"setDirectItalicState",[60,373,374],{},[16,375,376],{},"setDirectItalicState(value: DirectEmphasisState)",[42,378,379,384],{},[60,380,381],{},[16,382,383],{},"setComplexScriptBold",[60,385,386],{},[16,387,388],{},"setComplexScriptBold(value: boolean)",[42,390,391,396],{},[60,392,393],{},[16,394,395],{},"unsetComplexScriptBold",[60,397,398],{},[16,399,400],{},"unsetComplexScriptBold()",[42,402,403,408],{},[60,404,405],{},[16,406,407],{},"setComplexScriptItalic",[60,409,410],{},[16,411,412],{},"setComplexScriptItalic(value: boolean)",[42,414,415,420],{},[60,416,417],{},[16,418,419],{},"unsetComplexScriptItalic",[60,421,422],{},[16,423,424],{},"unsetComplexScriptItalic()",[42,426,427,432],{},[60,428,429],{},[16,430,431],{},"setRunRightToLeft",[60,433,434],{},[16,435,436],{},"setRunRightToLeft(value: boolean)",[42,438,439,444],{},[60,440,441],{},[16,442,443],{},"unsetRunRightToLeft",[60,445,446],{},[16,447,448],{},"unsetRunRightToLeft()",[42,450,451,456],{},[60,452,453],{},[16,454,455],{},"setHiddenText",[60,457,458],{},[16,459,460],{},"setHiddenText(value: boolean)",[42,462,463,468],{},[60,464,465],{},[16,466,467],{},"unsetHiddenText",[60,469,470],{},[16,471,472],{},"unsetHiddenText()",[42,474,475,480],{},[60,476,477],{},[16,478,479],{},"setTextOutline",[60,481,482],{},[16,483,484],{},"setTextOutline(value: boolean)",[42,486,487,492],{},[60,488,489],{},[16,490,491],{},"unsetTextOutline",[60,493,494],{},[16,495,496],{},"unsetTextOutline()",[42,498,499,504],{},[60,500,501],{},[16,502,503],{},"setTextShadow",[60,505,506],{},[16,507,508],{},"setTextShadow(value: boolean)",[42,510,511,516],{},[60,512,513],{},[16,514,515],{},"unsetTextShadow",[60,517,518],{},[16,519,520],{},"unsetTextShadow()",[42,522,523,528],{},[60,524,525],{},[16,526,527],{},"setTextEmboss",[60,529,530],{},[16,531,532],{},"setTextEmboss(value: boolean)",[42,534,535,540],{},[60,536,537],{},[16,538,539],{},"unsetTextEmboss",[60,541,542],{},[16,543,544],{},"unsetTextEmboss()",[42,546,547,552],{},[60,548,549],{},[16,550,551],{},"setTextImprint",[60,553,554],{},[16,555,556],{},"setTextImprint(value: boolean)",[42,558,559,564],{},[60,560,561],{},[16,562,563],{},"unsetTextImprint",[60,565,566],{},[16,567,568],{},"unsetTextImprint()",[42,570,571,576],{},[60,572,573],{},[16,574,575],{},"setEmphasisMark",[60,577,578],{},[16,579,580],{},"setEmphasisMark(value: TextStyleEmphasisMark)",[42,582,583,588],{},[60,584,585],{},[16,586,587],{},"unsetEmphasisMark",[60,589,590],{},[16,591,592],{},"unsetEmphasisMark()",[42,594,595,600],{},[60,596,597],{},[16,598,599],{},"applyTextStyleFieldUpdates",[60,601,602],{},[16,603,604],{},"applyTextStyleFieldUpdates(updates: readonly TextStyleResolvedFieldUpdate[])",[10,606,607,608,612],{},"These are parameter signatures. See ",[69,609,611],{"href":610},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,614,616],{"id":615},"other-public-exports","Other public exports",[618,619,620],"ul",{},[621,622,623,19,626],"li",{},[16,624,625],{},"textStyleExtension",[16,627,18],{},[25,629,631],{"id":630},"next-steps","Next steps",[10,633,634,635,639,640,642],{},"Return to ",[69,636,638],{"href":637},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,641,167],{"href":174}," to distinguish options, attributes and commands.",[10,644,645,646,650,651,655],{},"See ",[69,647,649],{"href":648},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,652,654],{"href":653},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[657,658,659],"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":661,"depth":661,"links":662},2,[663,664,665,666,671,672,673],{"id":27,"depth":661,"text":28},{"id":98,"depth":661,"text":99},{"id":157,"depth":661,"text":158},{"id":167,"depth":661,"text":168,"children":667},[668,670],{"id":178,"depth":669,"text":179},3,{"id":197,"depth":669,"text":198},{"id":214,"depth":661,"text":215},{"id":615,"depth":661,"text":616},{"id":630,"depth":661,"text":631},"md",[5,18,676,677,179,198,239,251,263,275,287,299,311,323,335,347,359,371,383,395,407,419,431,443,455,467,479,491,503,515,527,539,551,563,575,587,599,5,625],"文字样式容器","marks","en",{"navigationTitle":5,"license":23},true,139,"\u002Fen\u002Fplugins\u002Freference\u002Ftext-style","Marks and text styles",{"title":5,"description":12},"plugins\u002Freference\u002Ftext-style.en","cjPOr0ysCM29cPVAqd7lQHlFVTtevkZ393qlaBdsGBE",1793045227793]