解决方法:

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']

如果第二种办法不行,就用第一种办法(推荐第二种,但是我的第一种才起作用,郁闷~~~)

另,附文章一篇 百度富文本编辑器 UEditor 1.4.3 插入视频后路径被清空问题

标签: none

添加新评论