-
Kindeditor JSP版本兼容Kindeditor 4.0.3
资源介绍
自己修改的别的包,只为了以后自己用的时候可以方便找到
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"
});
- 上一篇: spring3.0MVC注解(附实例)
- 下一篇: Java日期选择器测试类.rar