解决百度ueditor插入动态地图空白 支持iframe方法

时间:2022-09-01 21:41:56

说明:新版本ueditor要修改 xss过滤白名单 

修改配置文件ueditor.config.js 

搜索:  whitList 增加下面第二行即可

1
2
3
,whitList:{
iframe: [ 'frameborder' , 'border' , 'marginwidth' , 'marginheight' , 'width' , 'height' , 'src' , 'id' ], //增加这一行
a:      [ 'target' , 'href' , 'title' , 'class' , 'style' ],