ie8下,UEditor中出错document.body为空或不是对象解决办法

原因为:document还没有加载完全,就执行了editor_all.js解决办法:在初始化UEditor时,在外面套上一层 
$(document).ready(function(){})

例如:

$(document).ready(function(){
    /*百度编辑器*/
    var U = new baidu.editor.ui.Editor();
    U.render("myEditor");
});

你可能感兴趣的:(ie8下,UEditor中出错document.body为空或不是对象解决办法)