[更新]修改富文本视频插入

This commit is contained in:
Anyon 2020-12-22 18:07:01 +08:00
parent 84df52d874
commit cda6fb84b4

View File

@ -51,7 +51,7 @@ CKEDITOR.plugins.add('uvideo', {
setTimeout(function () {
$('#cke_' + editor.name).find('.cke_button__uploadvideo_label').parent().map(function () {
$(this).attr('data-type', 'mp4').attr('data-file', 'mul').uploadFile(function (url) {
editor.insertElement(CKEDITOR.dom.element.createFromHtml('<div><video width="100%" controls="controls"><source src="' + url + '" type="audio/mp4"></video></div>'));
editor.insertElement(CKEDITOR.dom.element.createFromHtml('<div><iframe src="' + url + '" style="max-width:100%;max-height:100%;border:0" allowfullscreen="true"></iframe></div>'));
});
});
}, 100);