[{"data":1,"prerenderedAt":379},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-formatting-tools":3},{"id":4,"title":5,"body":6,"description":12,"extension":366,"keywords":367,"locale":370,"meta":371,"navigation":372,"order":373,"path":374,"section":375,"seo":376,"stem":377,"__hash__":378},"docs\u002Fplugins\u002Freference\u002Fclassic-editor-formatting-tools.en.md","ClassicEditorFormattingTools",{"type":7,"value":8,"toc":352},"minimark",[9,13,24,29,35,85,93,97,113,121,145,153,157,160,163,167,173,178,181,187,193,197,200,205,210,214,217,221,226,230,233,307,315,319,330,348],[10,11,12],"p",{},"Adds Classic controls for Formatting while retaining its clear-format preservation policy.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fclassic-editor"," · ",[21,22,23],"strong",{},"AGPL-3.0-only",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Classic product integration",[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,82],{},[60,77,78],{},"Block",[60,80,81],{},"Unsupported",[60,83,84],{},"Block does not consume Classic product contributions, plugins or paginated assembly. Use shared capabilities and Block adapters instead of copying this entry's Classic configuration.",[10,86,87,88,92],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,89,91],{"href":90},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,94,96],{"id":95},"installation","Installation",[98,99,104],"pre",{"className":100,"code":101,"language":102,"meta":103,"style":103},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fclassic-editor@alpha\n","sh","",[16,105,106],{"__ignoreMap":103},[107,108,111],"span",{"class":109,"line":110},"line",1,[107,112,101],{},[10,114,115,116,120],{},"Use the ",[69,117,119],{"href":118},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-kit","Classic kit",". Individual adapters support custom assembly or replacement without duplicate names.",[98,122,126],{"className":123,"code":124,"language":125,"meta":103,"style":103},"language-ts shiki shiki-themes github-light github-light github-dark","import { ClassicEditorFormattingTools } from '@quirekit\u002Fclassic-editor'\n","ts",[16,127,128],{"__ignoreMap":103},[107,129,130,134,138,141],{"class":109,"line":110},[107,131,133],{"class":132},"sDD9d","import",[107,135,137],{"class":136},"sVPnS"," { ClassicEditorFormattingTools } ",[107,139,140],{"class":132},"from",[107,142,144],{"class":143},"s-HEn"," '@quirekit\u002Fclassic-editor'\n",[10,146,147,148,152],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,149,151],{"href":150},"\u002Fen\u002Fsupport","support and licensing",".",[25,154,156],{"id":155},"integration-by-editor","Integration by editor",[10,158,159],{},"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.",[161,162],"plugin-integration",{"name":5},[25,164,166],{"id":165},"configuration","Configuration",[10,168,169,170,152],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,171,165],{"href":172},"\u002Fen\u002Fplugins\u002Fconfiguration",[174,175,177],"h3",{"id":176},"doublepressdelay","doublePressDelay",[10,179,180],{},"Milliseconds in which a second press promotes single-use mode to continuous mode.",[10,182,183,184],{},"Type：",[16,185,186],{},"number",[10,188,189,190],{},"Default：",[16,191,192],{},"500",[174,194,196],{"id":195},"preservedmarks","preservedMarks",[10,198,199],{},"Mark names preserved by character-format application and clearing.",[10,201,183,202],{},[16,203,204],{},"readonly string[]",[10,206,189,207],{},[16,208,209],{},"[\"link\", \"highlight\"]",[174,211,213],{"id":212},"preservedtextstyleattributes","preservedTextStyleAttributes",[10,215,216],{},"textStyle attribute names preserved by character-format application and clearing.",[10,218,183,219],{},[16,220,204],{},[10,222,189,223],{},[16,224,225],{},"[\"languageLatin\", \"languageEastAsia\", \"languageComplexScript\"]",[25,227,229],{"id":228},"commands-and-runtime","Commands and runtime",[10,231,232],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,234,235,245],{},[39,236,237],{},[42,238,239,242],{},[45,240,241],{},"Command",[45,243,244],{},"Parameter signature",[55,246,247,259,271,283,295],{},[42,248,249,254],{},[60,250,251],{},[16,252,253],{},"copyFormatting",[60,255,256],{},[16,257,258],{},"copyFormatting()",[42,260,261,266],{},[60,262,263],{},[16,264,265],{},"pasteFormatting",[60,267,268],{},[16,269,270],{},"pasteFormatting()",[42,272,273,278],{},[60,274,275],{},[16,276,277],{},"toggleFormatPainter",[60,279,280],{},[16,281,282],{},"toggleFormatPainter()",[42,284,285,290],{},[60,286,287],{},[16,288,289],{},"cancelFormatPainter",[60,291,292],{},[16,293,294],{},"cancelFormatPainter()",[42,296,297,302],{},[60,298,299],{},[16,300,301],{},"clearFormatting",[60,303,304],{},[16,305,306],{},"clearFormatting()",[10,308,309,310,314],{},"These are parameter signatures. See ",[69,311,313],{"href":312},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,316,318],{"id":317},"next-steps","Next steps",[10,320,321,322,326,327,329],{},"Return to ",[69,323,325],{"href":324},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,328,165],{"href":172}," to distinguish options, attributes and commands.",[10,331,332,333,337,338,342,343,347],{},"Continue with ",[69,334,336],{"href":335},"\u002Fen\u002Fclassic\u002Fquick-start","Classic quick start"," and ",[69,339,341],{"href":340},"\u002Fen\u002Fclassic\u002Fconfiguration","configuration\u002Flifetime",". See ",[69,344,346],{"href":345},"\u002Fen\u002Fbuild\u002Fproduct-plugin","product plugin development"," for your own UI and services.",[349,350,351],"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":103,"searchDepth":353,"depth":353,"links":354},2,[355,356,357,358,364,365],{"id":27,"depth":353,"text":28},{"id":95,"depth":353,"text":96},{"id":155,"depth":353,"text":156},{"id":165,"depth":353,"text":166,"children":359},[360,362,363],{"id":176,"depth":361,"text":177},3,{"id":195,"depth":361,"text":196},{"id":212,"depth":361,"text":213},{"id":228,"depth":353,"text":229},{"id":317,"depth":353,"text":318},"md",[5,18,368,369,177,196,213,253,265,277,289,301,5],"Classic 格式刷","classic","en",{"navigationTitle":5,"license":23},true,31,"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-formatting-tools","Classic product extensions",{"title":5,"description":12},"plugins\u002Freference\u002Fclassic-editor-formatting-tools.en","ddqxeRiiAVmp8_1lk-HV9cdNoo7UpNZnKi6mZk3zVo4",1793045233771]