解決百度富文本編輯器無法上傳視頻的問題

本文轉自: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']


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章