Download the PHP package xing.chen/yii2-ueditor without Composer

On this page you can find all versions of the php package xing.chen/yii2-ueditor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-ueditor

Yii2-UEditor-Extension

Yii2的百度UEditor扩展 修正于crazydb/yii2-ueditor 点击上传图片不卡

由于bower上的包是纯源码,需要用grunt打包后才能使用,因此扩展自带了1.4.3版本的UEditor资源包。

扩展特点:

  1. 支持多实例
  2. 支持缩略图(默认关闭)
  3. 支持缩放(默认关闭)
  4. 支持水印(默认关闭)
  5. 图片管理加载优化

安装

推荐使用 composer 来安装扩展.

使用如下命令安装:

或者将 "xing.chen/yii2-ueditor": "*" 添加到项目的 composer.json 文件.

使用方法

安装完毕后,进行简单的配置即可使用。

后端支持

1) 继承 xing\ueditor\UEditorController 来实现自己的后端。(推荐)

通过继承来编写自己的 Controller,可以精细的控制每个 action 的响应,推荐使用这种方式使用。

需要注意的是在 View 模板文件中使用扩展的时候需要指定 serverUrl 为自己编写的 controller 地址。

2) 通过配置 controllerMap 使用默认的后端。

修改配置文件,基础模板的配置文件是 config/web.php, 高级模板的配置文件是 config/main.php

简单配置即可使用,还可以配置更多选项:

扩展默认生成 200x200 的缩略图,缩略图大小可以通过 thumbnail 来控制。

如果将 thumbnail 设置为 false,就不会生成缩略图。

更多配置可以查看 UEditorController的 public 属性。

在模板中使用

1) 使用 ActiveRecord

就像使用普通的扩展一样。

或者

还可以配置更多属性:

需要注意的是 serverUrl 属性,默认后端地址是 /ueditor/index,如果配置了多个后端,则需要分别指定。

2) 当作普通表单使用

其他

编辑器内默认情况下行高为1,大段中文编辑显示效果非常差,但是可以通过设置 iframeCssUrl 来修改编辑器内显示效果。

默认不支持内网 IP 图片远程采集,如果部署在内网且需要这个功能,请配置UEditorController::allowIntranettrue

相关链接

@see https://github.com/fex-team/ueditor


All versions of yii2-ueditor with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xing.chen/yii2-ueditor contains the following files

Loading the files please wait ....