本文轉自:http://blog.csdn.net/qq_34787830/article/details/75092347
1、在配置文件ueditor.config.js中,定位 //xss過濾白名單,即,whitList:{ },對 img: 增加 “_url” 屬性:
2、在下面的 video 標籤後面新增3給標籤,使Ueditor分別能支持embed標籤和iframe標籤:
增加的代碼如下:(記得在在video這行的最後加上逗號,不然會報錯)
source: ['src', 'type'],
embed: ['type', 'class', 'pluginspage', 'src', 'width', 'height', 'align', 'style', 'wmode', 'play', 'autoplay','loop', 'menu', 'allowscriptaccess', 'allowfullscreen', 'controls', 'preload'],
iframe: ['src', 'class', 'height', 'width', 'max-width', 'max-height', 'align', 'frameborder', 'allowfullscreen']