修复URL带有多个参数的视频内容无法播放问题

Signed-off-by: 小胡 <3203164629@qq.com>
This commit is contained in:
小胡
2024-07-20 11:26:53 +00:00
committed by Gitee
Unverified
parent b0bb8e3fc0
commit c8204e5730

View File

@@ -17639,7 +17639,7 @@ UE.plugins['video'] = function (){
' src="' + me.options.UEDITOR_HOME_URL+'themes/default/images/spacer.gif" style="background:url('+me.options.UEDITOR_HOME_URL+'themes/default/images/videologo.gif) no-repeat center center; border:1px solid gray;'+(align ? 'float:' + align + ';': '')+'" />'
break;
case 'iframe':
str = '<iframe src="/dzz/DPlayer/player.php?url=' + utils.html(url) + '" width="100%" height="480px"' + (align ? ' style="float:' + align + '"': '') +' style="border-radius: var(--radius);border: none;"></iframe>';
str = '<iframe src="/dzz/DPlayer/player.php?url=' + encodeURIComponent(utils.html(url)) + '" width="100%" height="480px"' + (align ? ' style="float:' + align + '"': '') +' style="border-radius: var(--radius);border: none;"></iframe>';
break;
case 'video':
var ext = url.substr(url.lastIndexOf('.') + 1);
@@ -29856,4 +29856,4 @@ UE.registerUI('autosave', function(editor) {
});
})();
})();