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() { + ?> + +