首页 > 其他 > 详细

解决百度ueditor支持iframe框架页面的视频播放问题

时间:2019-02-16 19:54:42      阅读:590      评论:0      收藏:0      [点我收藏+]

新下载的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‘],

 

解决百度ueditor支持iframe框架页面的视频播放问题

原文:https://www.cnblogs.com/lixihuan/p/10388756.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!