[{"data":1,"prerenderedAt":347},["ShallowReactive",2],{"docs:\u002Fen\u002Fdocs\u002Freference\u002Fdocument":3},{"id":4,"title":5,"body":6,"description":337,"extension":338,"meta":339,"navigation":342,"path":343,"seo":344,"stem":345,"__hash__":346},"docs_en\u002Fen\u002Fdocs\u002Freference\u002Fdocument.md","Document and ranges",{"type":7,"value":8,"toc":331},"minimark",[9,14,18,22,25,29,32,36,50,327],[10,11,13],"h2",{"id":12},"canonical-document","Canonical document",[15,16,17],"p",{},"HTML, JSON and text getters read the last applied document. An invalid source draft is separate. getJSON returns an independent DocumentNode; changing that returned object does not mutate the editor. CSS is separate and must be stored\u002Frestored with JSON.",[10,19,21],{"id":20},"revision-snapshots","Revision snapshots",[15,23,24],{},"Change events expose html\u002Fjson\u002Fcss\u002Frevision of their own revision. Lazy getter fields retain that snapshot when read later, after another edit or destroy. Spreading\u002Fserializing an event is supported. CSS-only changes increase the revision too.",[10,26,28],{"id":27},"positions","Positions",[15,30,31],{},"SelectionInfo contains from, to, text and revision. Positions follow the structured document model and are not offsets into getText(). Captured ranges must retain their revision for delayed replacement. A stale result throws StaleDocumentError rather than overwriting newer edits.",[10,33,35],{"id":34},"plain-replacements","Plain replacements",[15,37,38,39,44,45,49],{},"replaceText accepts non-overlapping ranges within text blocks, without inline atoms or replacement line breaks. Literal markup remains text. Transformations preserve supported marks and styles. ",[40,41,43],"a",{"href":42},"\u002Fen\u002Fdocs\u002Freference\u002Fmethods","Methods",", ",[40,46,48],{"href":47},"\u002Fen\u002Fdocs\u002Freference\u002Fevents","events",".",[51,52,57],"pre",{"className":53,"code":54,"language":55,"meta":56,"style":56},"language-ts shiki shiki-themes github-dark","interface DocumentNode {\n  type: string;\n  attrs?: Record\u003Cstring, unknown>;\n  content?: DocumentNode[];\n  marks?: { type: string; attrs?: Record\u003Cstring, unknown> }[];\n  text?: string;\n}\ninterface SelectionInfo { from: number; to: number; text: string; revision: number }\ninterface TextEdit { from: number; to: number; text: string }\ninterface ImageAttributes { src: string; alt?: string; title?: string; width?: number; height?: number }\n","ts","",[58,59,60,77,94,120,133,172,184,190,238,272],"code",{"__ignoreMap":56},[61,62,65,69,73],"span",{"class":63,"line":64},"line",1,[61,66,68],{"class":67},"snl16","interface",[61,70,72],{"class":71},"svObZ"," DocumentNode",[61,74,76],{"class":75},"s95oV"," {\n",[61,78,80,84,87,91],{"class":63,"line":79},2,[61,81,83],{"class":82},"s9osk","  type",[61,85,86],{"class":67},":",[61,88,90],{"class":89},"sDLfK"," string",[61,92,93],{"class":75},";\n",[61,95,97,100,103,106,109,112,114,117],{"class":63,"line":96},3,[61,98,99],{"class":82},"  attrs",[61,101,102],{"class":67},"?:",[61,104,105],{"class":71}," Record",[61,107,108],{"class":75},"\u003C",[61,110,111],{"class":89},"string",[61,113,44],{"class":75},[61,115,116],{"class":89},"unknown",[61,118,119],{"class":75},">;\n",[61,121,123,126,128,130],{"class":63,"line":122},4,[61,124,125],{"class":82},"  content",[61,127,102],{"class":67},[61,129,72],{"class":71},[61,131,132],{"class":75},"[];\n",[61,134,136,139,141,144,147,149,151,154,157,159,161,163,165,167,169],{"class":63,"line":135},5,[61,137,138],{"class":82},"  marks",[61,140,102],{"class":67},[61,142,143],{"class":75}," { ",[61,145,146],{"class":82},"type",[61,148,86],{"class":67},[61,150,90],{"class":89},[61,152,153],{"class":75},"; ",[61,155,156],{"class":82},"attrs",[61,158,102],{"class":67},[61,160,105],{"class":71},[61,162,108],{"class":75},[61,164,111],{"class":89},[61,166,44],{"class":75},[61,168,116],{"class":89},[61,170,171],{"class":75},"> }[];\n",[61,173,175,178,180,182],{"class":63,"line":174},6,[61,176,177],{"class":82},"  text",[61,179,102],{"class":67},[61,181,90],{"class":89},[61,183,93],{"class":75},[61,185,187],{"class":63,"line":186},7,[61,188,189],{"class":75},"}\n",[61,191,193,195,198,200,203,205,208,210,213,215,217,219,222,224,226,228,231,233,235],{"class":63,"line":192},8,[61,194,68],{"class":67},[61,196,197],{"class":71}," SelectionInfo",[61,199,143],{"class":75},[61,201,202],{"class":82},"from",[61,204,86],{"class":67},[61,206,207],{"class":89}," number",[61,209,153],{"class":75},[61,211,212],{"class":82},"to",[61,214,86],{"class":67},[61,216,207],{"class":89},[61,218,153],{"class":75},[61,220,221],{"class":82},"text",[61,223,86],{"class":67},[61,225,90],{"class":89},[61,227,153],{"class":75},[61,229,230],{"class":82},"revision",[61,232,86],{"class":67},[61,234,207],{"class":89},[61,236,237],{"class":75}," }\n",[61,239,241,243,246,248,250,252,254,256,258,260,262,264,266,268,270],{"class":63,"line":240},9,[61,242,68],{"class":67},[61,244,245],{"class":71}," TextEdit",[61,247,143],{"class":75},[61,249,202],{"class":82},[61,251,86],{"class":67},[61,253,207],{"class":89},[61,255,153],{"class":75},[61,257,212],{"class":82},[61,259,86],{"class":67},[61,261,207],{"class":89},[61,263,153],{"class":75},[61,265,221],{"class":82},[61,267,86],{"class":67},[61,269,90],{"class":89},[61,271,237],{"class":75},[61,273,275,277,280,282,285,287,289,291,294,296,298,300,303,305,307,309,312,314,316,318,321,323,325],{"class":63,"line":274},10,[61,276,68],{"class":67},[61,278,279],{"class":71}," ImageAttributes",[61,281,143],{"class":75},[61,283,284],{"class":82},"src",[61,286,86],{"class":67},[61,288,90],{"class":89},[61,290,153],{"class":75},[61,292,293],{"class":82},"alt",[61,295,102],{"class":67},[61,297,90],{"class":89},[61,299,153],{"class":75},[61,301,302],{"class":82},"title",[61,304,102],{"class":67},[61,306,90],{"class":89},[61,308,153],{"class":75},[61,310,311],{"class":82},"width",[61,313,102],{"class":67},[61,315,207],{"class":89},[61,317,153],{"class":75},[61,319,320],{"class":82},"height",[61,322,102],{"class":67},[61,324,207],{"class":89},[61,326,237],{"class":75},[328,329,330],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .s9osk, html code.shiki .s9osk{--shiki-default:#FFAB70}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}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);}",{"title":56,"searchDepth":79,"depth":79,"links":332},[333,334,335,336],{"id":12,"depth":79,"text":13},{"id":20,"depth":79,"text":21},{"id":27,"depth":79,"text":28},{"id":34,"depth":79,"text":35},"HTML, JSON, CSS and revision-bearing positions.","md",{"group":340,"order":341},"API reference",43,true,"\u002Fen\u002Fdocs\u002Freference\u002Fdocument",{"title":5,"description":337},"en\u002Fdocs\u002Freference\u002Fdocument","prJRCxvQn0_mn4VPE8-e-tF4PrVvHTU0duN0KsMsY6s",1792670389580]