[{"data":1,"prerenderedAt":297},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fhtml-sandbox":3},{"id":4,"title":5,"body":6,"description":12,"extension":284,"keywords":285,"locale":288,"meta":289,"navigation":290,"order":291,"path":292,"section":293,"seo":294,"stem":295,"__hash__":296},"docs\u002Fplugins\u002Freference\u002Fhtml-sandbox.en.md","HtmlSandbox",{"type":7,"value":8,"toc":272},"minimark",[9,13,24,29,35,80,89,93,109,117,141,148,152,155,158,162,168,172,175,181,187,191,194,232,240,244,255,268],[10,11,12],"p",{},"Stores explicit HTML source. A host mount port enables an isolated preview; static export preserves escaped source rather than an active iframe.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-html-sandbox"," · ",[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,77],{},[60,72,73],{},"Block",[60,75,76],{},"Requires integration",[60,78,79],{},"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,81,82,83,88],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[84,85,87],"a",{"href":86},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,90,92],{"id":91},"installation","Installation",[94,95,100],"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-html-sandbox@alpha\n","sh","",[16,101,102],{"__ignoreMap":99},[103,104,107],"span",{"class":105,"line":106},"line",1,[103,108,97],{},[10,110,111,112,116],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[84,113,115],{"href":114},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[94,118,122],{"className":119,"code":120,"language":121,"meta":99,"style":99},"language-ts shiki shiki-themes github-light github-light github-dark","import { HtmlSandbox } from '@quirekit\u002Fextension-html-sandbox'\n","ts",[16,123,124],{"__ignoreMap":99},[103,125,126,130,134,137],{"class":105,"line":106},[103,127,129],{"class":128},"sDD9d","import",[103,131,133],{"class":132},"sVPnS"," { HtmlSandbox } ",[103,135,136],{"class":128},"from",[103,138,140],{"class":139},"s-HEn"," '@quirekit\u002Fextension-html-sandbox'\n",[10,142,143,144,116],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[84,145,147],{"href":146},"\u002Fen\u002Fsupport","support and licensing",[25,149,151],{"id":150},"integration-by-editor","Integration by editor",[10,153,154],{},"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.",[156,157],"plugin-integration",{"name":5},[25,159,161],{"id":160},"configuration","Configuration",[10,163,164,165,116],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[84,166,160],{"href":167},"\u002Fen\u002Fplugins\u002Fconfiguration",[169,170,171],"h3",{"id":171},"mount",[10,173,174],{},"Mount an isolated HTML preview and return its update\u002Fdisposal handle.",[10,176,177,178],{},"Type：",[16,179,180],{},"((container: HTMLElement, document: HtmlSandboxDocument) => HtmlSandboxViewHandle) | null",[10,182,183,184],{},"Default：",[16,185,186],{},"null",[25,188,190],{"id":189},"commands-and-runtime","Commands and runtime",[10,192,193],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,195,196,206],{},[39,197,198],{},[42,199,200,203],{},[45,201,202],{},"Command",[45,204,205],{},"Parameter signature",[55,207,208,220],{},[42,209,210,215],{},[60,211,212],{},[16,213,214],{},"insertHtmlSandbox",[60,216,217],{},[16,218,219],{},"insertHtmlSandbox(request: HtmlSandboxInsertion)",[42,221,222,227],{},[60,223,224],{},[16,225,226],{},"updateHtmlSandbox",[60,228,229],{},[16,230,231],{},"updateHtmlSandbox(request: HtmlSandboxUpdate)",[10,233,234,235,239],{},"These are parameter signatures. See ",[84,236,238],{"href":237},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,241,243],{"id":242},"next-steps","Next steps",[10,245,246,247,251,252,254],{},"Return to ",[84,248,250],{"href":249},"\u002Fen\u002Fplugins","all plugins",", or read ",[84,253,160],{"href":167}," to distinguish options, attributes and commands.",[10,256,257,258,262,263,267],{},"See ",[84,259,261],{"href":260},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[84,264,266],{"href":265},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[269,270,271],"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":99,"searchDepth":273,"depth":273,"links":274},2,[275,276,277,278,282,283],{"id":27,"depth":273,"text":28},{"id":91,"depth":273,"text":92},{"id":150,"depth":273,"text":151},{"id":160,"depth":273,"text":161,"children":279},[280],{"id":171,"depth":281,"text":171},3,{"id":189,"depth":273,"text":190},{"id":242,"depth":273,"text":243},"md",[5,18,286,287,171,214,226,5],"HTML 沙箱","objects","en",{"navigationTitle":5,"license":23},true,108,"\u002Fen\u002Fplugins\u002Freference\u002Fhtml-sandbox","Graphics and data",{"title":5,"description":12},"plugins\u002Freference\u002Fhtml-sandbox.en","LUCmKrkba3TNZDjEYcI7Pt9kxyo9Vn4NQ4n8neajB7A",1793045228949]