百度ueditor 实例化 Cannot set property 'innerHTML

  • 慢点
  • 2018-09-07 14:42:41
  • 363已阅读
博客文章编辑页面重新打开 编辑器没有初始化

编辑器初始化代码:

UE.getEditor = function (id, opt) {
var editor = instances[id];
if (!editor) {
editor = instances[id] = new UE.ui.Editor(opt);
editor.render(id);
}
return editor;
};


修改方法:

UE.getEditor = function (id, opt) {

UE.delEditor(id);
var editor = new UE.ui.Editor(opt);
editor.render(id);
return editor;
};

参考文章:http://www.cnblogs.com/Ricky-Huang/p/5536253.html