From a6883c5ce791600e71241370f2360c4e6df36b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Mon, 7 Apr 2025 10:55:57 +0800 Subject: [PATCH] 0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在后台撰写文章增加一个批量插入附件的按钮 --- functions.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/functions.php b/functions.php index 5b8f365..71df0f1 100644 --- a/functions.php +++ b/functions.php @@ -449,4 +449,60 @@ function commentApprove($widget, $email = NULL) $result['commentNum'] = $commentNum; } return $result; +} + +/** + * 修改附件插入功能 + */ +// 添加批量插入按钮的JavaScript +Typecho_Plugin::factory('admin/write-post.php')->bottom = array('MyHelper', 'addBatchInsertButton'); +Typecho_Plugin::factory('admin/write-page.php')->bottom = array('MyHelper', 'addBatchInsertButton'); + +class MyHelper { + public static function addBatchInsertButton() { + ?> + +