[{"data":1,"prerenderedAt":385},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fplaceholder":3},{"id":4,"title":5,"body":6,"description":12,"extension":373,"keywords":374,"locale":377,"meta":378,"navigation":144,"order":379,"path":380,"section":381,"seo":382,"stem":383,"__hash__":384},"docs\u002Fplugins\u002Freference\u002Fplaceholder.en.md","Placeholder",{"type":7,"value":8,"toc":357},"minimark",[9,13,24,29,35,78,87,91,107,115,175,182,186,189,192,196,202,207,210,216,222,226,229,233,238,242,245,249,254,257,260,265,270,274,277,282,287,291,294,298,302,306,309,313,318,322,325,329,340,353],[10,11,12],"p",{},"Adds transient placeholder decorations and attributes to empty nodes. DOM hosts provide CSS; other views need corresponding presentation support.",[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,69],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Unverified",[60,67,68],{},"A complete integration and verification path for this entry has not been established for this product. A public Core export does not imply product presentation, controls or file support.",[42,70,71,74,76],{},[60,72,73],{},"Block",[60,75,65],{},[60,77,68],{},[10,79,80,81,86],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[82,83,85],"a",{"href":84},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,88,90],{"id":89},"installation","Installation",[92,93,98],"pre",{"className":94,"code":95,"language":96,"meta":97,"style":97},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextensions@alpha\n","sh","",[16,99,100],{"__ignoreMap":97},[101,102,105],"span",{"class":103,"line":104},"line",1,[101,106,95],{},[10,108,109,110,114],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[82,111,113],{"href":112},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[92,116,120],{"className":117,"code":118,"language":119,"meta":97,"style":97},"language-ts shiki shiki-themes github-light github-light github-dark","import { Placeholder } from '@quirekit\u002Fextensions'\n\nconst hint = Placeholder.configure({ placeholder: '开始写作…' })\n","ts",[16,121,122,139,146],{"__ignoreMap":97},[101,123,124,128,132,135],{"class":103,"line":104},[101,125,127],{"class":126},"sDD9d","import",[101,129,131],{"class":130},"sVPnS"," { Placeholder } ",[101,133,134],{"class":126},"from",[101,136,138],{"class":137},"s-HEn"," '@quirekit\u002Fextensions'\n",[101,140,142],{"class":103,"line":141},2,[101,143,145],{"emptyLinePlaceholder":144},true,"\n",[101,147,149,152,156,159,162,166,169,172],{"class":103,"line":148},3,[101,150,151],{"class":126},"const",[101,153,155],{"class":154},"sUNQB"," hint",[101,157,158],{"class":126}," =",[101,160,161],{"class":130}," Placeholder.",[101,163,165],{"class":164},"sgQzM","configure",[101,167,168],{"class":130},"({ placeholder: ",[101,170,171],{"class":137},"'开始写作…'",[101,173,174],{"class":130}," })\n",[10,176,177,178,114],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[82,179,181],{"href":180},"\u002Fen\u002Fsupport","support and licensing",[25,183,185],{"id":184},"integration-by-editor","Integration by editor",[10,187,188],{},"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.",[190,191],"plugin-integration",{"name":5},[25,193,195],{"id":194},"configuration","Configuration",[10,197,198,199,114],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[82,200,194],{"href":201},"\u002Fen\u002Fplugins\u002Fconfiguration",[203,204,206],"h3",{"id":205},"emptyeditorclass","emptyEditorClass",[10,208,209],{},"Class name added when the whole editor is empty.",[10,211,212,213],{},"Type：",[16,214,215],{},"string",[10,217,218,219],{},"Default：",[16,220,221],{},"\"is-editor-empty\"",[203,223,225],{"id":224},"emptynodeclass","emptyNodeClass",[10,227,228],{},"Class name added to every empty decorated node.",[10,230,212,231],{},[16,232,215],{},[10,234,218,235],{},[16,236,237],{},"\"is-empty\"",[203,239,241],{"id":240},"dataattribute","dataAttribute",[10,243,244],{},"Data attribute name used for the placeholder label.",[10,246,212,247],{},[16,248,215],{},[10,250,218,251],{},[16,252,253],{},"\"placeholder\"",[203,255,256],{"id":256},"placeholder",[10,258,259],{},"Static placeholder text or callback.",[10,261,212,262],{},[16,263,264],{},"string | ((props: PlaceholderProps) => string)",[10,266,218,267],{},[16,268,269],{},"\"Write something …\"",[203,271,273],{"id":272},"showonlywheneditable","showOnlyWhenEditable",[10,275,276],{},"Whether placeholders should only show when the editor is editable.",[10,278,212,279],{},[16,280,281],{},"boolean",[10,283,218,284],{},[16,285,286],{},"true",[203,288,290],{"id":289},"showonlycurrent","showOnlyCurrent",[10,292,293],{},"Whether only the current empty node should show a placeholder.",[10,295,212,296],{},[16,297,281],{},[10,299,218,300],{},[16,301,286],{},[203,303,305],{"id":304},"includechildren","includeChildren",[10,307,308],{},"Whether descendant empty nodes should also be inspected.",[10,310,212,311],{},[16,312,281],{},[10,314,218,315],{},[16,316,317],{},"false",[25,319,321],{"id":320},"commands-and-runtime","Commands and runtime",[10,323,324],{},"This entry declares no directly enumerable commands. Children supply bundle commands; product plugins use contributions or document services.",[25,326,328],{"id":327},"next-steps","Next steps",[10,330,331,332,336,337,339],{},"Return to ",[82,333,335],{"href":334},"\u002Fen\u002Fplugins","all plugins",", or read ",[82,338,194],{"href":201}," to distinguish options, attributes and commands.",[10,341,342,343,347,348,352],{},"See ",[82,344,346],{"href":345},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[82,349,351],{"href":350},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[354,355,356],"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}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}",{"title":97,"searchDepth":141,"depth":141,"links":358},[359,360,361,362,371,372],{"id":27,"depth":141,"text":28},{"id":89,"depth":141,"text":90},{"id":184,"depth":141,"text":185},{"id":194,"depth":141,"text":195,"children":363},[364,365,366,367,368,369,370],{"id":205,"depth":148,"text":206},{"id":224,"depth":148,"text":225},{"id":240,"depth":148,"text":241},{"id":256,"depth":148,"text":256},{"id":272,"depth":148,"text":273},{"id":289,"depth":148,"text":290},{"id":304,"depth":148,"text":305},{"id":320,"depth":141,"text":321},{"id":327,"depth":141,"text":328},"md",[5,18,375,376,206,225,241,256,273,290,305,5],"占位提示","behavior","en",{"navigationTitle":5,"license":23},125,"\u002Fen\u002Fplugins\u002Freference\u002Fplaceholder","Editing behavior",{"title":5,"description":12},"plugins\u002Freference\u002Fplaceholder.en","UxukKiP2LQokVdRSHf6U_7NBmHb8u2_e_lgyF65ukzg",1793045228520]