forked from hs-web/hsweb-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
58 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# 对一些第三方插件的封装 | ||
|
||
```bash | ||
--------hsweb-thirdparty-ueditor # 百度ueditor的封装 | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 百度UEditor spring-boot集成 | ||
|
||
对[百度UEditor](http://ueditor.baidu.com/website/)后台服务的封装 | ||
|
||
# 使用: | ||
|
||
在pom.xml引入模块: | ||
|
||
```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](../../hsweb-system/hsweb-system-file)的文档进行引入. | ||
|
||
### 后端配置 | ||
|
||
在`src/main/resources` 下建立`ueditor-config.json`文件,此文件为ueditor的配置文件.例如: | ||
[ueditor-config.json](https://github.com/hs-web/hsweb3-demo/blob/master/src/main/resources/ueditor-config.json) | ||
你也可以参照[官方的配置](http://fex.baidu.com/ueditor/#server-config) | ||
|
||
### 前端配置 | ||
修改`ueditor.config.js`中的配置项: `window.UEDITOR_CONFIG.serverUrl`. 例如: | ||
|
||
```js | ||
/** | ||
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。 | ||
*/ | ||
window.UEDITOR_CONFIG = { | ||
|
||
// 服务器统一请求接口路径 | ||
serverUrl: "/ueditor" | ||
//** 更多配置项 | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters