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();

 

總結:目前只是實現了可以上傳和查看,但是上傳后還是存在問題。有時間會繼續更新


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM