由于后台是java,因此针对的是jsp版本的ueditor。javascript
工程中须要导入jsp目录lib下的jar包。若是是maven管理的工程,能够导入jar包。java
上传图片的功能的话,须要后台配置正确。若是须要使用本身的接口。只须要加如下代码。后端
<script id="editor" type="text/plain"></script> UE.Editor.prototype.getActionUrl = function(action) { //这里要和配置中的imageActionName值同样 if (action == 'uploadimage') { //这里调用后端咱们写的图片上传接口 return 'http://localhost:8080/shop/server/upload/uploadImage'; }else{ return this._bkGetActionUrl.call(this, action); }
而后后台实现接口就能够了。jsp
而后能够本身编写模板,只须要改变template下的config.js就能够了。maven