ueditor java_编辑器ueditor1.4.3 JAVA环境使用
修改ueditor.config.js
//項目名稱/ueditor存放的目錄 當前項目Test ueditor目錄 WebRoot/plugins/ueditor
window.UEDITOR_HOME_URL = "/Test/plugins/ueditor";
var URL = window.UEDITOR_HOME_URL || getUEBasePath();
window.UEDITOR_CONFIG = {
//為編輯器實例添加一個路徑,這個不能被注釋
UEDITOR_HOME_URL: URL
// 服務器統一請求接口路徑
, serverUrl: URL + "jsp/controller.jsp"
修改ueditor/jsp/config.json
/* 上傳圖片配置項 */
"imageUrlPrefix": "/Test", /* 圖片訪問路徑前綴 */
"imagePathFormat": "/ueditor/image/{yyyy}{mm}{dd}/{time}{rand:6}",
/* 列出指定目錄下的圖片 */
"imageManagerListPath": "/ueditor/image/", /* 指定要列出圖片的目錄 */
"imageManagerUrlPrefix": "/Test", /* 圖片訪問路徑前綴 */
修改com.baidu.ueditor.hunter.FileManager后打成jar包放入項目中
private String getPath ( File file ) {
String path = file.getAbsolutePath();
//path.replace( this.rootPath, "/" );
return path.replace(this.rootPath.replaceAll("\\/", "\\\\"), "\\" );?}
總結
以上是生活随笔為你收集整理的ueditor java_编辑器ueditor1.4.3 JAVA环境使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: rapidxml的简单使用
- 下一篇: RubyOnRails 热点关键词排名