[{"data":1,"prerenderedAt":165},["ShallowReactive",2],{"quirekit-doc:\u002Fapi\u002Foptions":3},{"id":4,"title":5,"body":6,"description":153,"extension":154,"keywords":155,"locale":156,"meta":157,"navigation":158,"order":159,"path":160,"section":161,"seo":162,"stem":163,"__hash__":164},"docs\u002Fapi\u002Foptions.zh-CN.md","Editor 配置与事件参考",{"type":7,"value":8,"toc":146},"minimark",[9,24,28,57,85,89,92,114,117,120,143],[10,11,12,13,18,19,23],"p",{},"本页用于查字段，调用步骤见 ",[14,15,17],"a",{"href":16},"\u002Fapi\u002Feditor","Editor 用法","。所有签名均来自 ",[20,21,22],"code",{},"@quirekit\u002Fcore"," 的公开入口，不需要从内部目录导入类型。",[25,26,27],"h2",{"id":27},"创建配置",[10,29,30,33,34,37,38,41,42,45,46,48,49,52,53,56],{},[20,31,32],{},"extensions","、Schema 与命令在创建时建立；",[20,35,36],{},"setOptions()"," 不会重新编译扩展。",[20,39,40],{},"element"," 存在时选择的 ",[20,43,44],{},"mode"," 必须已有适配器，省略 ",[20,47,44],{}," 选择 retained ",[20,50,51],{},"html","，而不是原生 ",[20,54,55],{},"dom","。",[10,58,59,60,63,64,67,68,71,72,75,76,78,79,81,82,56],{},"事件可在创建选项中使用 ",[20,61,62],{},"onCreate","、",[20,65,66],{},"onUpdate"," 等回调。",[20,69,70],{},"create"," 在构造期间同步发生，因此 ",[20,73,74],{},"new Editor()"," 返回后才订阅 ",[20,77,70],{}," 会错过它；在 ",[20,80,62],{}," 中使用回调参数的 ",[20,83,84],{},"editor",[86,87],"docs-api",{"name":88},"QuireEditorOptions",[25,90,91],{"id":91},"内容替换选项",[10,93,94,97,98,101,102,105,106,109,110,56],{},[20,95,96],{},"setContent()"," 与 ",[20,99,100],{},"replaceDocument()"," 共用这些选项。省略 ",[20,103,104],{},"emitUpdate"," 时正常通知更新；",[20,107,108],{},"errorOnInvalidContent"," 需要显式启用。语义和校验限制见",[14,111,113],{"href":112},"\u002Fguide\u002Fcontent","内容读写",[86,115],{"name":116},"QuireSetContentOptions",[25,118,119],{"id":119},"事件表",[10,121,122,123,126,127,130,131,134,135,138,139,56],{},"事件通知描述状态或输入事实，不是第二条修改通道。",[20,124,125],{},"transaction"," 还携带 ",[20,128,129],{},"appendedTransactions","；需要判断实际正文是否改变时，比较接受后的文档与旧文档，不能只看根事务。",[20,132,133],{},"update"," 默认也可由 ",[20,136,137],{},"setEditable()"," 触发，见",[14,140,142],{"href":141},"\u002Fconcepts\u002Flifecycle","事件用法",[86,144],{"name":145},"QuireEditorEvents",{"title":147,"searchDepth":148,"depth":148,"links":149},"",2,[150,151,152],{"id":27,"depth":148,"text":27},{"id":91,"depth":148,"text":91},{"id":119,"depth":148,"text":119},"查询创建配置、内容替换选项与全部公开事件的源码定义。","md",null,"zh-CN",{},true,4,"\u002Fapi\u002Foptions","API 与参考",{"title":5,"description":153},"api\u002Foptions.zh-CN","4t9CowKSEXikpJWiHxl1BfZLyb8gDlkAcLEAwXmiYco",1793045209396]