ueditor.all.js
7343,7344,7345三行注释掉
// var root = UE.htmlparser(html);
// me.filterInputRule(root);
// html = root.toHtml();
17769行 image改成video
// html.push(creatInsertStr( vi.url, vi.width || 420, vi.height || 280, id + i, null, cl, 'image'));
html.push(creatInsertStr( vi.url, vi.width || 420, vi.height || 280, id + i, null, cl, 'video'));
其实出现上传视频后在编辑器中一片空白的情况,查看HTML源码src丢失,可将
ueditor.config.js 第365行 whitList修改为whiteList
修改后编辑器中上传视频的效果
这样改了之后,编辑器中的视频内容是可以通过ue.getContent()获取到的。