请问,ueditor.all.min.js报错,下面这个问题,怎么解决,谢谢回答
ueditor.all.min.js:104UncaughtTypeError:Cannotreadproperty'parentNode'ofundefinedatUE...
ueditor.all.min.js:104 Uncaught TypeError: Cannot read property 'parentNode' of undefined at UE.Editor.setHeight (ueditor.all.min.js:104) at pnuuid_qypv.html:935
展开
1个回答
2018-01-06
展开全部
今天在使用UEditor的setContent的时候报错,报错代码如下 TypeError: me.body is undefined 或 Uncaught TypeError: Cannot set property 'innerHTML' of undefined 错误的原因是没有等UEditor创建完成就使用UEditor的setContent函数了,可以通过如下代码解决 方法一:ueditor.addListener("ready", function () {
ueditor.setContent('UEditor报错TypeError: me.body is undefined',2);
},2);
方法二:ueditor.ready(function() {
ueditor.setContent('UEditor报错TypeError: me.body is undefined',2);
},2);
ueditor.setContent('UEditor报错TypeError: me.body is undefined',2);
},2);
方法二:ueditor.ready(function() {
ueditor.setContent('UEditor报错TypeError: me.body is undefined',2);
},2);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询