💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
配置onfocus函数后,用户点击富文本区域会触发onfocus函数 ``` editor.customConfig.onfocus = function () { console.log("onfocus") } editor.create() ``` 配置onblur函数后,如果当前有手动获取焦点的富文本并且鼠标点击富文本以外的区域,则会触发onblur函数执行。 ``` editor.customConfig.onblur = function (html) { // html 即编辑器中的内容 console.log('onblur', html) } editor.create() ```