[{"data":1,"prerenderedAt":611},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fproofing":3},{"id":4,"title":5,"body":6,"description":12,"extension":598,"keywords":599,"locale":602,"meta":603,"navigation":604,"order":605,"path":606,"section":607,"seo":608,"stem":609,"__hash__":610},"docs\u002Fplugins\u002Freference\u002Fproofing.en.md","Proofing",{"type":7,"value":8,"toc":571},"minimark",[9,13,24,29,35,85,93,97,113,121,145,152,156,159,162,166,172,176,179,185,191,194,197,202,207,210,213,218,222,226,229,234,239,243,246,251,256,260,263,267,272,276,279,283,288,292,295,299,304,308,311,315,320,324,327,331,336,340,343,347,352,356,362,366,370,374,377,382,386,389,392,397,402,406,409,414,418,422,425,430,435,439,442,528,536,539,543,554,567],[10,11,12],"p",{},"Checks text through a host-supplied proofing provider and displays transient findings. The default null provider performs no checking.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-proofing"," · ",[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\u002Fcreate-classic-word-preset","createClassicWordPreset"," — Use createClassicWordPreset for Word models, layout and product integration. Controls, flags, host services and file support follow this page. Full comment, revision and content-control authoring UI additionally requires Pro.",[42,75,76,79,82],{},[60,77,78],{},"Block",[60,80,81],{},"Requires integration",[60,83,84],{},"Connect the services, targets and lifecycle described on this page and validate the selected View and document model. Core contracts are reusable, but there is no universal product installation without host ports.",[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\u002Fextension-proofing@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],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,117,119],{"href":118},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[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 { Proofing } from '@quirekit\u002Fextension-proofing'\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"," { Proofing } ",[107,139,140],{"class":132},"from",[107,142,144],{"class":143},"s-HEn"," '@quirekit\u002Fextension-proofing'\n",[10,146,147,148,120],{},"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,153,155],{"id":154},"integration-by-editor","Integration by editor",[10,157,158],{},"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.",[160,161],"plugin-integration",{"name":5},[25,163,165],{"id":164},"configuration","Configuration",[10,167,168,169,120],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,170,164],{"href":171},"\u002Fen\u002Fplugins\u002Fconfiguration",[173,174,175],"h3",{"id":175},"enabled",[10,177,178],{},"Whether checking starts enabled.",[10,180,181,182],{},"Type：",[16,183,184],{},"boolean",[10,186,187,188],{},"Default：",[16,189,190],{},"true",[173,192,193],{"id":193},"provider",[10,195,196],{},"Engine; checking stays disabled while null.",[10,198,181,199],{},[16,200,201],{},"ProofingProvider | null",[10,203,187,204],{},[16,205,206],{},"null",[173,208,209],{"id":209},"policy",[10,211,212],{},"Document-model knowledge; defaults treat every textblock as body text.",[10,214,181,215],{},[16,216,217],{},"ProofingDocumentPolicy | null",[10,219,187,220],{},[16,221,206],{},[173,223,225],{"id":224},"defaultlanguage","defaultLanguage",[10,227,228],{},"Language used when a text has none.",[10,230,181,231],{},[16,232,233],{},"string | null",[10,235,187,236],{},[16,237,238],{},"\"en-US\"",[173,240,242],{"id":241},"debouncems","debounceMs",[10,244,245],{},"Quiet period after an edit before checking.",[10,247,181,248],{},[16,249,250],{},"number",[10,252,187,253],{},[16,254,255],{},"400",[173,257,259],{"id":258},"maxwaitms","maxWaitMs",[10,261,262],{},"Longest delay while edits keep arriving.",[10,264,181,265],{},[16,266,250],{},[10,268,187,269],{},[16,270,271],{},"2000",[173,273,275],{"id":274},"timeoutms","timeoutMs",[10,277,278],{},"Longest time one provider request may run.",[10,280,181,281],{},[16,282,250],{},[10,284,187,285],{},[16,286,287],{},"10000",[173,289,291],{"id":290},"maxconcurrentrequests","maxConcurrentRequests",[10,293,294],{},"Requests running at once.",[10,296,181,297],{},[16,298,250],{},[10,300,187,301],{},[16,302,303],{},"2",[173,305,307],{"id":306},"maxsegmentsperbatch","maxSegmentsPerBatch",[10,309,310],{},"Segments per request.",[10,312,181,313],{},[16,314,250],{},[10,316,187,317],{},[16,318,319],{},"40",[173,321,323],{"id":322},"maxcharactersperbatch","maxCharactersPerBatch",[10,325,326],{},"UTF-16 characters per request.",[10,328,181,329],{},[16,330,250],{},[10,332,187,333],{},[16,334,335],{},"8000",[173,337,339],{"id":338},"maxsuggestions","maxSuggestions",[10,341,342],{},"Suggestions per finding.",[10,344,181,345],{},[16,346,250],{},[10,348,187,349],{},[16,350,351],{},"5",[173,353,355],{"id":354},"maxissues","maxIssues",[10,357,358,359,120],{},"Findings kept for the whole document before reporting ",[16,360,361],{},"limited",[10,363,181,364],{},[16,365,250],{},[10,367,187,368],{},[16,369,271],{},[173,371,373],{"id":372},"dictionarystore","dictionaryStore",[10,375,376],{},"Persistent user dictionary, or null for session-only ignores.",[10,378,181,379],{},[16,380,381],{},"ProofingDictionaryStore | null",[10,383,187,384],{},[16,385,206],{},[173,387,388],{"id":388},"appearance",[10,390,391],{},"Underline colors.",[10,393,181,394],{},[16,395,396],{},"ProofingAppearance",[10,398,187,399],{},[16,400,401],{},"{ spelling: \"#e5484d\", grammar: \"#3e63dd\", style: \"#8e4ec6\" }",[173,403,405],{"id":404},"onerror","onError",[10,407,408],{},"Receives provider failures, timeouts, and invalid results.",[10,410,181,411],{},[16,412,413],{},"((error: ProofingError) => void) | null",[10,415,187,416],{},[16,417,206],{},[173,419,421],{"id":420},"resolvevisiblerange","resolveVisibleRange",[10,423,424],{},"Resolves the visible document interval checked right after the caret's block.",[10,426,181,427],{},[16,428,429],{},"((editor: QuireEditor) => ProofingRange | null) | null",[10,431,187,432],{},[16,433,434],{},"resolveDefaultProofingVisibleRange",[25,436,438],{"id":437},"commands-and-runtime","Commands and runtime",[10,440,441],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,443,444,454],{},[39,445,446],{},[42,447,448,451],{},[45,449,450],{},"Command",[45,452,453],{},"Parameter signature",[55,455,456,468,480,492,504,516],{},[42,457,458,463],{},[60,459,460],{},[16,461,462],{},"setProofingEnabled",[60,464,465],{},[16,466,467],{},"setProofingEnabled(enabled: boolean)",[42,469,470,475],{},[60,471,472],{},[16,473,474],{},"recheckProofing",[60,476,477],{},[16,478,479],{},"recheckProofing()",[42,481,482,487],{},[60,483,484],{},[16,485,486],{},"replaceProofingIssue",[60,488,489],{},[16,490,491],{},"replaceProofingIssue(issueId: string, replacement: string)",[42,493,494,499],{},[60,495,496],{},[16,497,498],{},"ignoreProofingIssue",[60,500,501],{},[16,502,503],{},"ignoreProofingIssue(issueId: string)",[42,505,506,511],{},[60,507,508],{},[16,509,510],{},"ignoreProofingWord",[60,512,513],{},[16,514,515],{},"ignoreProofingWord(word: string)",[42,517,518,523],{},[60,519,520],{},[16,521,522],{},"addProofingWord",[60,524,525],{},[16,526,527],{},"addProofingWord(word: string)",[10,529,530,531,535],{},"These are parameter signatures. See ",[69,532,534],{"href":533},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[10,537,538],{},"Checking requires a provider. @quirekit\u002Fproofing-harper and @quirekit\u002Fproofing-hunspell are service adapters rather than additional Core extensions.",[25,540,542],{"id":541},"next-steps","Next steps",[10,544,545,546,550,551,553],{},"Return to ",[69,547,549],{"href":548},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,552,164],{"href":171}," to distinguish options, attributes and commands.",[10,555,556,557,561,562,566],{},"See ",[69,558,560],{"href":559},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,563,565],{"href":564},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[568,569,570],"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":572,"depth":572,"links":573},2,[574,575,576,577,596,597],{"id":27,"depth":572,"text":28},{"id":95,"depth":572,"text":96},{"id":154,"depth":572,"text":155},{"id":164,"depth":572,"text":165,"children":578},[579,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595],{"id":175,"depth":580,"text":175},3,{"id":193,"depth":580,"text":193},{"id":209,"depth":580,"text":209},{"id":224,"depth":580,"text":225},{"id":241,"depth":580,"text":242},{"id":258,"depth":580,"text":259},{"id":274,"depth":580,"text":275},{"id":290,"depth":580,"text":291},{"id":306,"depth":580,"text":307},{"id":322,"depth":580,"text":323},{"id":338,"depth":580,"text":339},{"id":354,"depth":580,"text":355},{"id":372,"depth":580,"text":373},{"id":388,"depth":580,"text":388},{"id":404,"depth":580,"text":405},{"id":420,"depth":580,"text":421},{"id":437,"depth":572,"text":438},{"id":541,"depth":572,"text":542},"md",[5,18,600,601,175,193,209,225,242,259,275,291,307,323,339,355,373,388,405,421,462,474,486,498,510,522,5],"拼写与语法校对","behavior","en",{"navigationTitle":5,"license":23},true,126,"\u002Fen\u002Fplugins\u002Freference\u002Fproofing","Editing behavior",{"title":5,"description":12},"plugins\u002Freference\u002Fproofing.en","l9ekibPq0Gw8mSqBuoao6XAHeEh2V2I3uATA8wafZGk",1793045225730]