解决百度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'],

  

posted @ 2017-07-28 16:32  zbchls  阅读(3544)  评论(0编辑  收藏  举报