kindeditor 增加附件上傳功能

2021-05-23 17:04:41 字數 990 閱讀 9204

1.在ke.lang中加入accessory : '插入附件',

3.在defaultitems中加入'accessory',

4.增加附件的plugin

ke.plugin['accessory'] = );

dialog.show();

},check : function(id) else

if (url.match(//.(doc|xls|ppt|pdf|txt|rar|zip)$/i) == null)

return true;

},exec : function(id) else

},insert : function(id, url, title, ext)

var html = '

html += '';

if (title) html += title;

html += '';

alert(html)

ke.util.inserthtml(id, html);

ke.layout.hide(id);

ke.util.focus(id);}};

5.在plugins資料夾中增加上傳附件的檔案,檔案內容如下:

7.修改skins目錄裡的default.gif,增加附件圖示,我是加在最後面

8.修改skins目錄裡的default.css,加入

測試效果如下:

python郵件加附件傳送模組

smtp.sendmail from addr,to addrs,msg.as string smtp.sendmail from addr,to addrs,msg.as string 用jenkins每天跑完一些效能指標,就想著跑完了,可以發個郵件通知下大家,也讓大家看到一些效能資料 這裡發郵件...

shapoint 列表 新增附件問題

由於用ajax的方式給列表新增附件。所以不能用伺服器控制項 uploadfile,獲取檔案流位元組就不能用uploadfile.filebytes,但使用 system.io.fileinfo myfile new system.io.fileinfo filepath byte fileconte...

ajaxFileUpload增加附加引數

直接說方法 ajaxfileupload 附加引數,json格式 然後在ajaxfileupload.js檔案中修改兩個函式,其實就是乙個函式 給函式新增新的引數 第一處 createuploadform function id,fileelementid,data 大於在26行吧。然後在在函式體中...