解决百度ueditor支持iframe框架页面的视频播放问题
新下载的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'],
关于PHPCMS插入的ifrmae视频无法解析播放的问题见:https://blog.lavfun.com/technical-forum/62.html
扫描二维码推送至手机访问。
版权声明:本文由 声光视趣 - blog.lavfun.com 发布,如需转载请注明出处。