setContent 报错 Cannot set property ‘innerHTML’ of undefined
检测UEditor是否创建完成,创建完成后再执行setContent方法
ueditor.addListener(“ready”, function () {
ueditor.setContent(‘str’);
});
ueditor.ready(function() {
ueditor.setContent(‘str’);
});
setContent 报错 Cannot set property ‘innerHTML’ of undefined
检测UEditor是否创建完成,创建完成后再执行setContent方法
ueditor.addListener(“ready”, function () {
ueditor.setContent(‘str’);
});
ueditor.ready(function() {
ueditor.setContent(‘str’);
});