百度编辑器获取内容时视频的src给清空了解决办法
解决方法:
1
把 ueditor.config.js 约368行中的 whitList 修改为 whiteList(白名单写错了);2
img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', 'loadingclass', 'class'],
=》
img: ['src', 'alt', 'title', 'width', 'height', 'id', '_src', '_url' 'loadingclass', 'class'],
video改不改都行:
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'class', 'style'],
=》
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'class', 'style'],
source: ['src', 'type'],
embed: ['type', 'class', 'pluginspage', 'src', 'width', 'height', 'align', 'style', 'wmode', 'play','loop', 'menu', 'allowscriptaccess', 'allowfullscreen']如果第二种办法不行,就用第一种办法(推荐第二种,但是我的第一种才起作用,郁闷~~~)