[{"data":1,"prerenderedAt":417},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Flink":3},{"id":4,"title":5,"body":6,"description":12,"extension":405,"keywords":406,"locale":409,"meta":410,"navigation":153,"order":411,"path":412,"section":413,"seo":414,"stem":415,"__hash__":416},"docs\u002Fplugins\u002Freference\u002Flink.en.md","Link",{"type":7,"value":8,"toc":393},"minimark",[9,13,24,29,35,88,96,100,116,124,190,197,201,204,207,211,217,222,225,231,237,240,243,248,253,256,259,264,269,273,276,350,358,361,365,376,389],[10,11,12],"p",{},"Stores link destinations and provides insert, update and removal commands. Completed typed URLs can become links; the host owns link UI and navigation.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-link"," · ",[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,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-link@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 { Link } from '@quirekit\u002Fextension-link'\n\nconst links = Link.configure({ autolink: false, color: '#2255cc' })\n","ts",[16,130,131,148,155],{"__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"," { Link } ",[110,142,143],{"class":135},"from",[110,145,147],{"class":146},"s-HEn"," '@quirekit\u002Fextension-link'\n",[110,149,151],{"class":112,"line":150},2,[110,152,154],{"emptyLinePlaceholder":153},true,"\n",[110,156,158,161,165,168,171,175,178,181,184,187],{"class":112,"line":157},3,[110,159,160],{"class":135},"const",[110,162,164],{"class":163},"sUNQB"," links",[110,166,167],{"class":135}," =",[110,169,170],{"class":139}," Link.",[110,172,174],{"class":173},"sgQzM","configure",[110,176,177],{"class":139},"({ autolink: ",[110,179,180],{"class":163},"false",[110,182,183],{"class":139},", color: ",[110,185,186],{"class":146},"'#2255cc'",[110,188,189],{"class":139}," })\n",[10,191,192,193,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,194,196],{"href":195},"\u002Fen\u002Fsupport","support and licensing",[25,198,200],{"id":199},"integration-by-editor","Integration by editor",[10,202,203],{},"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.",[205,206],"plugin-integration",{"name":5},[25,208,210],{"id":209},"configuration","Configuration",[10,212,213,214,123],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,215,209],{"href":216},"\u002Fen\u002Fplugins\u002Fconfiguration",[218,219,221],"h3",{"id":220},"htmlattributes","HTMLAttributes",[10,223,224],{},"Additional serialized anchor attributes.",[10,226,227,228],{},"Type：",[16,229,230],{},"Record\u003Cstring, unknown>",[10,232,233,234],{},"Default：",[16,235,236],{},"{}",[218,238,239],{"id":239},"color",[10,241,242],{},"Derived glyph color, not persistent document state.",[10,244,227,245],{},[16,246,247],{},"string",[10,249,233,250],{},[16,251,252],{},"\"#0563c1\"",[218,254,255],{"id":255},"autolink",[10,257,258],{},"Complete typed URLs after whitespace\u002FEnter; defaults to true.",[10,260,227,261],{},[16,262,263],{},"boolean",[10,265,233,266],{},[16,267,268],{},"true",[25,270,272],{"id":271},"commands-and-runtime","Commands and runtime",[10,274,275],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,277,278,288],{},[39,279,280],{},[42,281,282,285],{},[45,283,284],{},"Command",[45,286,287],{},"Parameter signature",[55,289,290,302,314,326,338],{},[42,291,292,297],{},[60,293,294],{},[16,295,296],{},"setLink",[60,298,299],{},[16,300,301],{},"setLink(attributes: LinkAttributes)",[42,303,304,309],{},[60,305,306],{},[16,307,308],{},"insertLink",[60,310,311],{},[16,312,313],{},"insertLink(attributes: LinkInsertionAttributes)",[42,315,316,321],{},[60,317,318],{},[16,319,320],{},"updateLink",[60,322,323],{},[16,324,325],{},"updateLink(attributes: LinkInsertionAttributes)",[42,327,328,333],{},[60,329,330],{},[16,331,332],{},"toggleLink",[60,334,335],{},[16,336,337],{},"toggleLink(attributes: LinkAttributes)",[42,339,340,345],{},[60,341,342],{},[16,343,344],{},"unsetLink",[60,346,347],{},[16,348,349],{},"unsetLink()",[10,351,352,353,357],{},"These are parameter signatures. See ",[69,354,356],{"href":355},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[10,359,360],{},"Only the options listed above are supported. Tiptap Link settings such as openOnClick and protocols are not options of this implementation.",[25,362,364],{"id":363},"next-steps","Next steps",[10,366,367,368,372,373,375],{},"Return to ",[69,369,371],{"href":370},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,374,209],{"href":216}," to distinguish options, attributes and commands.",[10,377,378,379,383,384,388],{},"See ",[69,380,382],{"href":381},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,385,387],{"href":386},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[390,391,392],"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":106,"searchDepth":150,"depth":150,"links":394},[395,396,397,398,403,404],{"id":27,"depth":150,"text":28},{"id":98,"depth":150,"text":99},{"id":199,"depth":150,"text":200},{"id":209,"depth":150,"text":210,"children":399},[400,401,402],{"id":220,"depth":157,"text":221},{"id":239,"depth":157,"text":239},{"id":255,"depth":157,"text":255},{"id":271,"depth":150,"text":272},{"id":363,"depth":150,"text":364},"md",[5,18,407,408,221,239,255,296,308,320,332,344,5],"超链接","marks","en",{"navigationTitle":5,"license":23},115,"\u002Fen\u002Fplugins\u002Freference\u002Flink","Marks and text styles",{"title":5,"description":12},"plugins\u002Freference\u002Flink.en","L0HY9jPODLTOJRkNgUrBY-7x82TRA_PYgHAhEq5yP54",1793045227504]