|
3 tahun lalu | |
---|---|---|
.. | ||
src | 6 tahun lalu | |
README.md | 6 tahun lalu | |
pom.xml | 3 tahun lalu |
对百度UEditor后台服务的封装
在pom.xml引入模块:
<dependency>
<dependency>
<groupId>org.hswebframework.web</groupId>
<artifactId>hsweb-thirdparty-ueditor</artifactId>
<version>${hsweb.framework.version}</version>
</dependency>
</dependency>
⚠️ 注意: 此模块使用hsweb-system-file-api
模块进行文件管理.
所以在使用此模块之前需要提供hsweb-system-file-api
的实现模块.
你可以查看hsweb-system-file的文档进行引入.
在src/main/resources
下建立ueditor-config.json
文件,此文件为ueditor的配置文件.例如:
ueditor-config.json
你也可以参照官方的配置
修改ueditor.config.js
中的配置项: window.UEDITOR_CONFIG.serverUrl
. 例如:
/**
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
*/
window.UEDITOR_CONFIG = {
// 服务器统一请求接口路径
serverUrl: "/ueditor"
//** 更多配置项
}