ueditor-plus-v1.2.1-beta和v1.4。3之前的版本均對應ueditor的官方v1.4.3版本
ueditor-plus-v1.2.1-beta之後版本將於ueditor官方保持一致。即ueditor-plus-v1.4.3.1版本對應ueditor的v1.4.3.1版本。
<dependency>
<groupId>cn.xiexianbin.ueditor</groupId>
<artifactId>ueditor-plus</artifactId>
<version>1.4.3.3</version>
</dependency>
Ueditor 官方使用說明:http://fex.baidu.com/ueditor/#server-jsp,ueditor-plus提供兩種配置模式:
配置文件OSSKey.properties位於src/main/resources目錄下(及java的classpath目錄下),若不配置OSSKey.properties文件或配置useStatus=false,該功能同ueditor官方提供的功能一致;否則,將啟用ue的高級功能。 。
即啟用ueditor-plus模式,配置及使用方法如下:
把/src/ueditor1_4_3-utf8-jsp文件下的所有文件拷貝到項目的目錄下(該文件來自ueditor官網修改後的版本)。
到https://github.com/XieXianbin/ueditor-plus/releases 下載ueditor-plus-1.2.0-beta.jar包,與從/src/lib文件夾下的jar包一同拷貝到項目的lib目錄下,導入項目。
將/src/OSSKey.properties拷貝到src/main/resources目錄下,配置OSSKey.properties文件,修改如下:
## ALIYUN OSSClient Configure
# Ueditor use or not story image to ALIYUN OSS, values true/false
# default value false
useStatus=true
# ALIYUN OSS bucket info
bucketName=ali--cdn-shenzhen
key=
secret=
# auto create Bucket to default (HangZhou) zone, values true/false
# default value false
autoCreateBucket=false
## ALIYUN OSS URL
# The Oss Client Endpoind to auth, like http://oss-cn-shenzhen.aliyuncs.com/
ossCliendEndPoint=http://oss-cn-shenzhen.aliyuncs.com/
# ossEndPoint=http://ali--cdn.oss-cn-shenzhen.aliyuncs.com/
ossEndPoint=http://ali--cdn-shenzhen.oss-cn-shenzhen.aliyuncs.com/
## ALIYUN CDN URL
# Ueditor use or not use ALIYUN CDN, values true/false
# default value false, when useCDN=true, the cdnEndPoint will used.
useCDN=false
#cdnEndPoint=http(s)://cdn.xiexianbin.cn.w.kunlunar.com/
cdnEndPoint=
# Ueditor story or not story image to local direct, values true/false
# default value false
useLocalStorager=false
# default Ueditor upload base path, from config.json, when
# useLocalStorager=false, this values will work to delete upload
# file, default value is "upload", unuse now.
#uploadBasePath=upload
# Ueditor use or not use asynchronous model to upload image to ALIYUN OSS
# default value false
useAsynUploader=false
http://127.0.0.1:8080/ueditor/ueditor1_4_3-utf8-jsp/jsp/controller.jsp?action=config
uploadimage://執行上傳圖片或截圖的action名稱
uploadscraw://執行上傳塗鴉的action名稱
uploadvideo://執行上傳視頻的action名稱
uploadfile://controller裡,執行上傳視頻的action名稱
QQ群:20038301
本項目是個人業餘時間開發和提供技術支持,歡迎捐贈!