新下载的 ueditor 增加了 xss 安全过虑, 把 iframe 过滤了, 导致发表的文章包含的视频播放功能被限制了.
说明: 新版本 ueditor 要修改 xss 过滤白名单
修改配置文件 ueditor.config.JS
搜索: whitList 增加下面第二行即可
- ,whitList:{
- iframe: ['frameborder','border','marginwidth','marginheight','width','height','src','id'],// 增加这一行
- a: ['target', 'href', 'title', 'class', 'style'],
来源: http://www.bubuko.com/infodetail-2956937.html