Giter VIP home page Giter VIP logo

xiexianbin / ueditor-plus Goto Github PK

View Code? Open in Web Editor NEW
70.0 5.0 26.0 17.28 MB

Create By Xie Xianbin. RePackage ueditor for spring and other object storage service.

Home Page: http://docs.xiexianbin.cn/ueditor-plus

License: Apache License 2.0

Shell 0.06% Java 3.09% HTML 4.77% CSS 5.92% JavaScript 86.16%
ueditor ueditor-for-aliyun-oss ueditor-plus cdn oss editor editor-plugin ueditor-spring springboot

ueditor-plus's Introduction

ueditor-plus使用配置

License Build Status Codeship GitHub release GitHub pull requests

版本说明

  1. ueditor-plus-v1.2.1-beta和v1.4。3之前的版本均对应ueditor的官方v1.4.3版本

  2. ueditor-plus-v1.2.1-beta之后版本将于ueditor官方保持一致。即ueditor-plus-v1.4.3.1版本对应ueditor的v1.4.3.1版本。

Maven

<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提供两种配置模式:

1. 标准模式:

配置文件OSSKey.properties位于src/main/resources目录下(及java的classpath目录下),若不配置OSSKey.properties文件或配置useStatus=false,该功能同ueditor官方提供的功能一致;否则,将启用ue的高级功能。。

2. 高级模式:

即启用ueditor-plus模式,配置及使用方法如下:

  1. 把/src/ueditor1_4_3-utf8-jsp文件下的所有文件拷贝到项目的目录下(该文件来自ueditor官网修改后的版本)。

  2. https://github.com/XieXianbin/ueditor-plus/releases 下载ueditor-plus-1.2.0-beta.jar包,与从/src/lib文件夹下的jar包一同拷贝到项目的lib目录下,导入项目。

  3. 将/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

action类型以及说明

  • uploadimage://执行上传图片或截图的action名称

  • uploadscraw://执行上传涂鸦的action名称

  • uploadvideo://执行上传视频的action名称

  • uploadfile://controller里,执行上传视频的action名称

技术支持

邮箱:[email protected]

QQ群:20038301

捐赠

本项目是个人业余时间开发和提供技术支持,欢迎捐赠!

ueditor-plus's People

Contributors

xiexianbin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ueditor-plus's Issues

windows服务器运行正常,上传到centos服务器报错

windows服务器上一切正常,上传centos服务器后访问controller.jsp报错:
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [14] in the generated java file: [/usr/local/tomcat/work/Catalina/manage.*****.net/static/org/apache/jsp/plugin/ueditor/jsp/controller_jsp.java]
Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package

An error occurred at line: 12 in the jsp file: /plugin/ueditor/jsp/controller.jsp
ActionEnter cannot be resolved to a type

WEB-INF/lib下5个jar文件都存在
项目是SpringMVC的,tomcat都是7.0版本

文档

是不是得更新下文档?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.