标签:var source ued one parse lse VID round ack
打开ueditor.all.js
注释掉以下三行
// var root = UE.htmlparser(html);
// me.filterInputRule(root);
// html = root.toHtml();
将
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‘));
注释掉原释放代码,添加ckplayer播放代码
//ckplayer播放器
str =‘<script src="/ckplayer/ckplayer.js" type="text/javascript"></script>‘+
‘<div id="video" style="width: 600px; height: 400px; background:#ccc; text-align: center; margin: 0 auto;"> </div>‘+
‘<script type="text/javascript">‘+
‘var videoObject = {‘+
‘container: "#video",‘+
‘variable: "player",‘+
‘flashplayer:false,‘+
‘video:‘+‘"‘+url+‘"‘+
‘};‘+
‘var player=new ckplayer(videoObject);‘+
‘</script>‘;
//原来的播放器
// str = ‘<video‘ + (id ? ‘ id="‘ + id + ‘"‘ : ‘‘) + ‘ class="‘ + classname + ‘ video-js" ‘ + (align ? ‘ style="float:‘ + align + ‘"‘: ‘‘) +
// ‘ controls preload="none" width="‘ + width + ‘" height="‘ + height + ‘" src="‘ + url + ‘" data-setup="{}">‘ +
// ‘<source src="‘ + url + ‘" type="video/‘ + ext + ‘" /></video>‘;
找开ueditor.config.js
关闭xss过滤
,xssFilterRules: false
//input xss过滤
,inputXssFilter: false
//output xss过滤
,outputXssFilter: false
标签:var source ued one parse lse VID round ack
原文地址:https://www.cnblogs.com/surplus/p/13190904.html