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不然会报错
tp5数据要用php解码
将数据取出并显示在html文件中,记住这一步要使用php的htmlspecialchars_decode函数,将HTML 实体转换为字符,格式如下:
{:htmlspecialchars_decode($row['ar_content'])}