ueditor

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

The MIT License (MIT)
Группа

Группа

com.github.jackpanz
Идентификатор

Идентификатор

ueditor
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

ueditor
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Ссылка на сайт

Ссылка на сайт

http://maven.apache.org
Система контроля версий

Система контроля версий

https://github.com/jackpanz/ueditor

Скачать ueditor

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.jackpanz/ueditor/ -->
<dependency>
    <groupId>com.github.jackpanz</groupId>
    <artifactId>ueditor</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jackpanz/ueditor/
implementation 'com.github.jackpanz:ueditor:1.0.0'
// https://jarcasting.com/artifacts/com.github.jackpanz/ueditor/
implementation ("com.github.jackpanz:ueditor:1.0.0")
'com.github.jackpanz:ueditor:jar:1.0.0'
<dependency org="com.github.jackpanz" name="ueditor" rev="1.0.0">
  <artifact name="ueditor" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jackpanz', module='ueditor', version='1.0.0')
)
libraryDependencies += "com.github.jackpanz" % "ueditor" % "1.0.0"
[com.github.jackpanz/ueditor "1.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.json : json jar 20180130
commons-io : commons-io jar 2.6

provided (4)

Идентификатор библиотеки Тип Версия
javax.servlet : javax.servlet-api jar 3.1.0
com.aliyun.oss : aliyun-sdk-oss jar 2.2.1
org.springframework : spring-web jar 5.0.0.RELEASE
commons-fileupload : commons-fileupload jar 1.3.3

Модули Проекта

Данный проект не имеет модулей.

uediter

  • Support spring mvc upload
  • Support spring boot upload
  • Support local storage
  • Support Alibaba Cloud Storage

Download

Gradle:

dependencies {
  implementation 'com.github.jackpanz:ueditor:1.0.0'
}

Maven:

<dependency>
    <groupId>com.github.jackpanz</groupId>
    <artifactId>ueditor</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

Configure your Controller url

  • /ueditoru/editor.config.js
...
window.UEDITOR_CONFIG = {
    UEDITOR_HOME_URL: URL
, serverUrl:window.location.protocol  + "//" + window.location.host + "/ueditor/controller"
...

Local storage

@ResponseBody
@RequestMapping(value = "/ueditor/aliyun", method = {RequestMethod.POST, RequestMethod.GET})
public String aliyun(HttpServletRequest request) {
    String value = new ActionEnter(request, new LocalSpringFileManager(
            new File("D:/java/nginx-1.15.8/html"),
            "http://localhost/")
    ).exec();
    return value;
}

Alibaba Cloud

@ResponseBody
@RequestMapping(value = "aliyun", method = {RequestMethod.POST, RequestMethod.GET})
public String aliyun(HttpServletRequest request) {

    if ( isLoad++ == 0) {
        OSSConfig.image_access = "http://xxx.aliyuncs.com/";
        OSSConfig.accessKeyId = "accessKeyId";
        OSSConfig.accessKeySecret = "accessKeySecret";
        OSSConfig.endpoint = "endpoint";
        OSSConfig.bucketName = "bucketName";
    }

    String value = new ActionEnter(request, new OSSSpringFileManager()).exec();
    return value;
}

Версии библиотеки

Версия
1.0.0