排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术

因为加载到layer后百度编辑器要从新渲染一遍,所以如果使用setContent(Content)设置的内容在加载
到layer弹窗中是显示不出来数据的,我估计以为是setContent("你的内容。。。")后内容已经被渲染一遍了,渲染好的就是iframe
如果在渲染一次,估计那些东西不会给加载出来。
既然要重新渲染一遍,那么我们可以每次都写一个加载事件,加载完成后在去使用setContent()方法就好
//弄个加载事件就好了,因为layer要让他重新加载一次,那我们就重新写一次加载方法嘛 var uee = UE.getEditor('editor1'); uee.ready(function () { uee.setContent(aContent); });
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739。有需要软件开发,或者学习软件技术的朋友可以和我联系~(Q:815170684)
评价