一、 Maven需要的依赖:
如果依赖无法下载,可以多添加几个私服地址:
在Maven框架中加入镜像私服
nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus/content/groups/public/ alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central alimaven central aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ ibiblio central Human Readable Name for this Mirror. http://mirrors.ibiblio.org/pub/mirrors/maven2/ jboss-public-repository-group central JBoss Public Repository Group http://repository.jboss.org/nexus/content/groups/public central Maven Repository Switchboard http://repo1.maven.org/maven2/ central repo2 central Human Readable Name for this Mirror. http://repo2.maven.org/maven2/
二、富文本编辑器KindEditor:
三、在jsp界面引入kindeditor相关依赖:
"stylesheet" type="text/css" href="${pageContext.request.contextPath}/kindeditor/themes/default/default.css"> "stylesheet" type="text/css" href="${pageContext.request.contextPath}/kindeditor/plugins/code/prettify.css">
四、富文本编辑框的就绪函数:
KindEditor.ready(function(K) { var editor1 = K.create('#goodsDesc', { uploadJson : '${pageContext.request.contextPath}/kindeditor/upload_json.jsp', fileManagerJson : '${pageContext.request.contextPath}/kindeditor/file_manager_json.jsp' }); });
注意 就绪函数中的名称对应textarea标签的id:
五、 编辑框中真实存储路径和项目路径:
如果不创建上传图片到富文本编辑框中会提示找不到此目录。

上传一个图片,富文本编辑框是怎么存储的?



可以看到是一个写死的img标签。