【文件属性】:
文件名称:kindeditor JSP版支持kindeditor4.0.3
文件大小:32KB
文件格式:JAR
更新时间:2014-12-08 02:07:03
kindeditor
自己修改的别的包,只为了以后自己用的时候可以方便找到
1.将以下的JAR包放到工程的lib目录下
* commons-fileupload-1.2.1.jar
* commons-io-1.4.jar
* kindeditorservlet.jar
2.web.xml 的servlet及相关属性设置
UploadImage
com.elkan.kindeditor.upload.UploadImage
UPLOAD_PATH
uploadImg/
MAX_SIZE
1024000
IMAGETYPES
jpg,png,bmp,jpeg,gif
MAX_WIDTH
500
MAX_HEIGHT
500
UploadImageManager
com.elkan.kindeditor.upload.UploadImageManager
UPLOAD_PATH
uploadImg/
UploadAccessory
com.elkan.kindeditor.upload.UploadAccessory
UPLOAD_PATH
uploadAttach/
MAX_SIZE
1000000
FILETYPES
doc,xls,ppt,zip,rar,txt
3.KE 相关属性设置
KE.show({
id : "editor",
width : "600px",
height : "200px",
resizeMode : 1,
allowFileManager : true,
/*图片上传的SERVLET路径*/
imageUploadJson : "/JSPKindEditor/uploadImage.html",
/*图片管理的SERVLET路径*/
fileManagerJson : "/JSPKindEditor/uploadImgManager.html",
/*允许上传的附件类型*/
accessoryTypes : "doc|xls|pdf|txt|ppt|rar|zip",
/*附件上传的SERVLET路径*/
accessoryUploadJson : "/JSPKindEditor/uploadAccessory.html"
});