[{"data":1,"prerenderedAt":160},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fapi\u002Foptions":3},{"id":4,"title":5,"body":6,"description":148,"extension":149,"keywords":150,"locale":151,"meta":152,"navigation":153,"order":154,"path":155,"section":156,"seo":157,"stem":158,"__hash__":159},"docs\u002Fapi\u002Foptions.en.md","Editor options and events",{"type":7,"value":8,"toc":141},"minimark",[9,24,29,52,77,81,85,108,111,115,138],[10,11,12,13,18,19,23],"p",{},"Use this page to look up fields, and ",[14,15,17],"a",{"href":16},"\u002Fen\u002Fapi\u002Feditor","Editor usage"," for invocation steps. Signatures come from the public ",[20,21,22],"code",{},"@quirekit\u002Fcore"," entry; internal imports are unnecessary.",[25,26,28],"h2",{"id":27},"creation-options","Creation options",[10,30,31,32,35,36,39,40,43,44,47,48,51],{},"Extensions, Schema and commands are established at creation. ",[20,33,34],{},"setOptions()"," does not recompile extensions. Mounting through ",[20,37,38],{},"element"," requires an adapter for the selected ",[20,41,42],{},"mode","; omitting the mode selects retained ",[20,45,46],{},"html",", rather than native ",[20,49,50],{},"dom",".",[10,53,54,55,58,59,62,63,66,67,70,71,74,75,51],{},"Register ",[20,56,57],{},"onCreate",", ",[20,60,61],{},"onUpdate"," and similar callbacks through creation options. ",[20,64,65],{},"create"," fires synchronously during construction, so subscribing after ",[20,68,69],{},"new Editor()"," returns misses it. Use the callback's ",[20,72,73],{},"editor"," argument inside ",[20,76,57],{},[78,79],"docs-api",{"name":80},"QuireEditorOptions",[25,82,84],{"id":83},"content-replacement-options","Content replacement options",[10,86,87,90,91,94,95,98,99,102,103,107],{},[20,88,89],{},"setContent()"," and ",[20,92,93],{},"replaceDocument()"," share these options. Updates are emitted unless disabled with ",[20,96,97],{},"emitUpdate","; enable ",[20,100,101],{},"errorOnInvalidContent"," explicitly. See ",[14,104,106],{"href":105},"\u002Fen\u002Fguide\u002Fcontent","content operations"," for semantics and validation limits.",[78,109],{"name":110},"QuireSetContentOptions",[25,112,114],{"id":113},"event-map","Event map",[10,116,117,118,121,122,125,126,129,130,133,134,51],{},"Events describe state or input facts and do not establish a second mutation channel. ",[20,119,120],{},"transaction"," includes ",[20,123,124],{},"appendedTransactions",". Compare accepted and previous documents to detect content changes, rather than inspecting only the root transaction. ",[20,127,128],{},"setEditable()"," also emits ",[20,131,132],{},"update"," by default; see ",[14,135,137],{"href":136},"\u002Fen\u002Fconcepts\u002Flifecycle","event usage",[78,139],{"name":140},"QuireEditorEvents",{"title":142,"searchDepth":143,"depth":143,"links":144},"",2,[145,146,147],{"id":27,"depth":143,"text":28},{"id":83,"depth":143,"text":84},{"id":113,"depth":143,"text":114},"Look up creation options, replacement settings and the complete public event map.","md",null,"en",{},true,4,"\u002Fen\u002Fapi\u002Foptions","API and reference",{"title":5,"description":148},"api\u002Foptions.en","ME4qB4LrPvUoyvxEL1VM1uo5_Vj5VHpZgEXlsDmHZ8I",1793045210599]