ueditor不能上传mp4格式的视频--解决方案

1、ueditor.all.js

去掉所有的 type="application/x-shockwave-flash"

2、ueditor.all.min.js

去掉所有的 type="application/x-shockwave-flash"

3、ueditor.all.js

 //此处将 edui-faked-video 改为 edui-faked,防止后面将此处替换为image标签

改:cl = (type == 'upload' ? 'edui-upload-video video-js vjs-default-skin':'edui-faked-video');

  cl = (type == 'upload' ? 'edui-upload-video video-js vjs-default-skin':'edui-faked');

// 此处将image改为embed实现实时预览视频,且修复了第一次插入视频保存后,刷新后再保存会导致视频丢失的bug

改: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’));

将以下三行注释

//var root = UE.htmlparser(html);
//me.filterInputRule(root);
//html = root.toHtml();

 

总结:目前只是实现了可以上传和查看,但是上传后还是存在问题。有时间会继续更新

转载于:https://www.cnblogs.com/dhrwawa/p/10600193.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值