uedior解决方法
UE.delEditor('ueditorCotent');//在初始化时把以前的编辑框清除 不能会出现textarea框
// ueditor 开始调用
// var ue = UE.getEditor('ueditorCotent');
var ue = new baidu.editor.ui.Editor('ueditorCotent');
ue.render('ueditorCotent');
在返回的详情中这样赋值
ue.ready(function() {
$scope.mod_content = ue.setContent(res.data.content);
});
因为只有把编辑器初始化了才能用setContent不然会报错
转载于:https://my.oschina.net/pingheyongfeng/blog/1524766