百度编辑器报错 Cannot read property 'l
2020-08-09 本文已影响0人
八妹sss
原因:UEditor实例被销毁后,执行了自动保存导致。
解决思路:当UEditor实例不存在 不执行自动保存
具体代码:
contentchange: function () {
// 防止报错“Cannot read property 'lang' of undefined”
if(!me.getOpt('enableAutoSave')) {
return
}