[{"data":1,"prerenderedAt":376},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fformatting":3},{"id":4,"title":5,"body":6,"description":12,"extension":363,"keywords":364,"locale":367,"meta":368,"navigation":369,"order":370,"path":371,"section":372,"seo":373,"stem":374,"__hash__":375},"docs\u002Fplugins\u002Freference\u002Fformatting.en.md","Formatting",{"type":7,"value":8,"toc":349},"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,223,228,232,235,309,317,321,332,345],[10,11,12],"p",{},"Provides format painting and clearing. Configure which marks and textStyle attributes survive clear-format operations.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextensions"," · ",[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\u002Fextensions@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 { Formatting } from '@quirekit\u002Fextensions'\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"," { Formatting } ",[110,142,143],{"class":135},"from",[110,145,147],{"class":146},"s-HEn"," '@quirekit\u002Fextensions'\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},"doublepressdelay","doublePressDelay",[10,181,182],{},"Milliseconds in which a second press promotes single-use mode to continuous mode.",[10,184,185,186],{},"Type：",[16,187,188],{},"number",[10,190,191,192],{},"Default：",[16,193,194],{},"500",[176,196,198],{"id":197},"preservedmarks","preservedMarks",[10,200,201],{},"Mark names preserved by character-format application and clearing.",[10,203,185,204],{},[16,205,206],{},"readonly string[]",[10,208,191,209],{},[16,210,211],{},"[\"link\", \"highlight\"]",[176,213,215],{"id":214},"preservedtextstyleattributes","preservedTextStyleAttributes",[10,217,218],{},"textStyle attribute names preserved by character-format application and clearing.",[10,220,185,221],{},[16,222,206],{},[10,224,191,225],{},[16,226,227],{},"[\"languageLatin\", \"languageEastAsia\", \"languageComplexScript\"]",[25,229,231],{"id":230},"commands-and-runtime","Commands and runtime",[10,233,234],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,236,237,247],{},[39,238,239],{},[42,240,241,244],{},[45,242,243],{},"Command",[45,245,246],{},"Parameter signature",[55,248,249,261,273,285,297],{},[42,250,251,256],{},[60,252,253],{},[16,254,255],{},"copyFormatting",[60,257,258],{},[16,259,260],{},"copyFormatting()",[42,262,263,268],{},[60,264,265],{},[16,266,267],{},"pasteFormatting",[60,269,270],{},[16,271,272],{},"pasteFormatting()",[42,274,275,280],{},[60,276,277],{},[16,278,279],{},"toggleFormatPainter",[60,281,282],{},[16,283,284],{},"toggleFormatPainter()",[42,286,287,292],{},[60,288,289],{},[16,290,291],{},"cancelFormatPainter",[60,293,294],{},[16,295,296],{},"cancelFormatPainter()",[42,298,299,304],{},[60,300,301],{},[16,302,303],{},"clearFormatting",[60,305,306],{},[16,307,308],{},"clearFormatting()",[10,310,311,312,316],{},"These are parameter signatures. See ",[69,313,315],{"href":314},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,318,320],{"id":319},"next-steps","Next steps",[10,322,323,324,328,329,331],{},"Return to ",[69,325,327],{"href":326},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,330,167],{"href":174}," to distinguish options, attributes and commands.",[10,333,334,335,339,340,344],{},"See ",[69,336,338],{"href":337},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,341,343],{"href":342},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[346,347,348],"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":350,"depth":350,"links":351},2,[352,353,354,355,361,362],{"id":27,"depth":350,"text":28},{"id":98,"depth":350,"text":99},{"id":157,"depth":350,"text":158},{"id":167,"depth":350,"text":168,"children":356},[357,359,360],{"id":178,"depth":358,"text":179},3,{"id":197,"depth":358,"text":198},{"id":214,"depth":358,"text":215},{"id":230,"depth":350,"text":231},{"id":319,"depth":350,"text":320},"md",[5,18,365,366,179,198,215,255,267,279,291,303,5],"格式刷与清除格式","behavior","en",{"navigationTitle":5,"license":23},true,102,"\u002Fen\u002Fplugins\u002Freference\u002Fformatting","Editing behavior",{"title":5,"description":12},"plugins\u002Freference\u002Fformatting.en","OrVIBw3wwgPU8cRSvMhTymAs5cdQGSVYvzveVaM1K1Q",1793045228151]