feat(submit): add user media library

This commit is contained in:
2026-09-04 22:53:33 +08:00
parent 44e165d34e
commit f3fcfe45da
23 changed files with 1321 additions and 945 deletions
+2 -2
View File
@@ -446,7 +446,7 @@
type: 'string',
source: 'attribute',
selector: '.file-download-btn',
attribute: 'data-download-file',
attribute: 'data-aksrt-file-id',
default: 0,
},
url: {
@@ -921,7 +921,7 @@
href: url,
};
if (file_id) {
a_attr['data-download-file'] = file_id;
a_attr['data-aksrt-file-id'] = file_id;
}
var desc_lists = desc.map(function (item) {
File diff suppressed because one or more lines are too long
-11
View File
@@ -1364,17 +1364,6 @@ _win.bd.on('click', '.switch-iframe', function () {
_this.addClass('active').siblings().removeClass('active');
});
//下载文件
_win.bd.on('click', '.file-download-btn', function () {
var _this = jQuery(this);
var id = _this.attr('data-download-file');
var nonce = _this.attr('download-nonce');
_this.attr('target', '_blank');
if (!id) return;
var href = _win.ajax_url + '?action=download_file&file=' + id + '&nonce=' + nonce;
_this.attr('target', '_blank').removeAttr('data-download-file').attr('href', href);
});
//文章古腾堡TAB
_win.bd.on('click', '.post-tab-toggle', function () {
var _this = jQuery(this);
+1 -1
View File
File diff suppressed because one or more lines are too long