[{"data":1,"prerenderedAt":248},["ShallowReactive",2],{"msfe-doc:\u002Fen\u002Fapi\u002Feditor":3},{"id":4,"title":5,"body":6,"description":234,"extension":235,"keywords":236,"locale":239,"meta":240,"navigation":241,"order":242,"path":243,"section":244,"seo":245,"stem":246,"__hash__":247},"docs\u002Fapi\u002Feditor.en.md","Editor API",{"type":7,"value":8,"toc":225},"minimark",[9,13,18,22,26,45,48,52,70,73,77,80,83,87,222],[10,11,12],"p",{},"Type signatures are extracted from the current MSFE public exports. Initial configuration applies only at mount time; use instance methods for subsequent state changes.",[14,15,17],"h2",{"id":16},"creation-function","Creation function",[19,20],"msfe-api",{"name":21},"createMsfeEditor",[14,23,25],{"id":24},"creation-options","Creation options",[10,27,28,29,33,34,37,38,37,41,44],{},"Provide a browser mount element as ",[30,31,32],"code",{},"parent",". Set ",[30,35,36],{},"markdown",", ",[30,39,40],{},"extensions",[30,42,43],{},"mode",", and host callbacks as needed.",[19,46],{"name":47},"MsfeEditorOptions",[14,49,51],{"id":50},"editor-instance","Editor instance",[10,53,54,57,58,61,62,65,66,69],{},[30,55,56],{},"commands"," runs commands, ",[30,59,60],{},"can()"," checks applicability, and ",[30,63,64],{},"chain()"," combines operations into one dispatch. If a command is unavailable, inspect its return value and ",[30,67,68],{},"lastCommandResult",".",[19,71],{"name":72},"MsfeEditor",[14,74,76],{"id":75},"document-changes","Document changes",[10,78,79],{},"Events preserve incremental edits and origin information without serializing the entire document by default. Observer errors are reported through the host error callback.",[19,81],{"name":82},"MsfeChangeEvent",[14,84,86],{"id":85},"find-methods-by-task","Find methods by task",[88,89,90,106],"table",{},[91,92,93],"thead",{},[94,95,96,100,103],"tr",{},[97,98,99],"th",{},"Task",[97,101,102],{},"Combination",[97,104,105],{},"Guide",[107,108,109,125,138,152,166,180,194,208],"tbody",{},[94,110,111,115,118],{},[112,113,114],"td",{},"Save",[112,116,117],{},"getMarkdown + onChange",[112,119,120],{},[121,122,124],"a",{"href":123},"\u002Fen\u002Fguide\u002Fsaving","Serialized saving",[94,126,127,130,133],{},[112,128,129],{},"External same-document edits",[112,131,132],{},"applyChanges + identity\u002Frevision",[112,134,135],{},[121,136,137],{"href":123},"External updates",[94,139,140,143,146],{},[112,141,142],{},"Switch files",[112,144,145],{},"replaceDocument + fresh resources",[112,147,148],{},[121,149,151],{"href":150},"\u002Fen\u002Fguide\u002Flifecycle","Lifecycle",[94,153,154,157,160],{},[112,155,156],{},"Format toolbar",[112,158,159],{},"can \u002F isActive \u002F getAttributes \u002F subscribeState",[112,161,162],{},[121,163,165],{"href":164},"\u002Fen\u002Fcustomization\u002Ftoolbars","Toolbars",[94,167,168,171,174],{},[112,169,170],{},"Compound action",[112,172,173],{},"chain(...).run()",[112,175,176],{},[121,177,179],{"href":178},"\u002Fen\u002Fguide\u002Fcommands","Commands",[94,181,182,185,188],{},[112,183,184],{},"Write after a dialog",[112,186,187],{},"captureTarget or captureAnchor",[112,189,190],{},[121,191,193],{"href":192},"\u002Fen\u002Fguide\u002Fselection","Captured intent",[94,195,196,199,202],{},[112,197,198],{},"Reading preferences",[112,200,201],{},"defineState + updateViewState",[112,203,204],{},[121,205,207],{"href":206},"\u002Fen\u002Fguide\u002Fstate","State",[94,209,210,213,216],{},[112,211,212],{},"Diagnose behavior",[112,214,215],{},"onError \u002F lastCommandResult \u002F work",[112,217,218],{},[121,219,221],{"href":220},"\u002Fen\u002Fguide\u002Fdebugging","Diagnostics",[10,223,224],{},"Read the minimum necessary source in selectors and queries. Do not keep invoking disposed instances or pass their old state to another editor.",{"title":226,"searchDepth":227,"depth":227,"links":228},"",2,[229,230,231,232,233],{"id":16,"depth":227,"text":17},{"id":24,"depth":227,"text":25},{"id":50,"depth":227,"text":51},{"id":75,"depth":227,"text":76},{"id":85,"depth":227,"text":86},"Look up the current public creation options, instance methods, and incremental events.","md",[21,72,237,238],"Options","methods","en",{},true,0,"\u002Fen\u002Fapi\u002Feditor","API reference",{"title":5,"description":234},"api\u002Feditor.en","4KoaLfijcEucP3dxAIbDF2TkaFK00tpuKKrS3tofo7I",1793046312765]