\template\default\forum/ajax_imagelist.htm
搜索:- <table cellspacing="2" cellpadding="2" class="imgl"><tr>
复制代码 修改为:- <table cellspacing="2" cellpadding="2" class="imgl"><tr>
- <a onclick="Allinimage();return false;" href="javascript:;" class="xi2">添加批量插入图片功能</a>
复制代码 打开\static\js\forum_post.js
最下部分加入- function Allinimage() {
- var attachListObj = $('e_imgattachlist').getElementsByTagName("td");
- for(var i in attachListObj) {
- if(typeof attachListObj[i] == "object") {
- var attach = attachListObj[i];
- var ids = attach.id.split('_td_');
- if(ids[0] == 'image') {
- insertAttachimgTag(ids[1]);
- var txt = wysiwyg ? '\r\n<br/>' : '';
- insertText(txt, strlen(txt), 0);
- }
- }
- }
- doane();
- }
复制代码
覆盖同名文件搞定 |