mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改富文本视频插入
This commit is contained in:
parent
84df52d874
commit
cda6fb84b4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user