使用百度的ueditor富文本编辑器在ie中如果页面设置了document.domain,则会导致编辑器初始化失败,错误信息是拒绝访问,可见是跨域问题导致的。
解决的方法就是在render方法中设置src为一个代理页面,或者javascript伪协议,例如如下代码:
container.firstChild.src = "javascript:void((function(){document.open();document.domain='"+document.domain+"';
document.write('');documen...