`

artDialog&ueditor 跨域赋值 setContent chrome&ieBUG问题

 
阅读更多
_noticeFn = function(fnType,id,el){//公告的新增和编辑
	art.dialog({
		title: fnType+"公告",
		content: document.getElementById('noticeDialog'),
		lock: true,
		drag:true,
		initialize:function(){
			if(fnType=='新增'){//新增公告
				$("#notice-title").val("");
				detail = "";//公告内容
				editor.setContent(detail);//为了解决IE兼容问题
				editor.addListener('ready', function(){
					this.setContent(detail);//支持其他浏览器
				});
			}else if(fnType=='编辑'){
				_getSingleNotice(id);
				title = noticeSingleData.title;//公告标题
				detail = noticeSingleData.detail;//公告内容
				$("#notice-title").val(title);
				if(detail!=null){
					editor.setContent(detail);//为了解决IE兼容问题
					editor.addListener('ready', function(){
						this.setContent(detail);//支持其他浏览器
					});
				}
			}
		},
		ok: function(){
		},
		cancel:true
	});
};

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics