Ueditor富文本添加编辑视频,视频不显示解决方案

Posted caibaotimes

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ueditor富文本添加编辑视频,视频不显示解决方案相关的知识,希望对你有一定的参考价值。

1、2是解决添加视频时不显示,3是解决编辑时不显示

ueditor.all.js文件中

  1. 第7343行、7344行、7345行注释掉
//var root = UE.htmlparser(html); 
//me.filterInputRule(root); 
//html = root.toHtml();

2.第17683行,最后image改为video

var html = creatInsertStr( img2video ? node.getAttr(\'_url\') : node.getAttr(\'src\'),node.getAttr(\'width\'),node.getAttr(\'height\'),null,node.getStyle(\'float\') || \'\',className,img2video ? \'video\':\'video\');

3.第17769行,最后image改为video

html.push(creatInsertStr( vi.url, vi.width || 420, vi.height || 280, id + i, null, cl, \'video\'));

以上是关于Ueditor富文本添加编辑视频,视频不显示解决方案的主要内容,如果未能解决你的问题,请参考以下文章