PHPackages                             zkf/ueditor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zkf/ueditor

ActiveLibrary

zkf/ueditor
===========

desc

1.0(2y ago)09MITJavaScript

Since May 9Pushed 1y agoCompare

[ Source](https://github.com/eworthcms/yii2-ueditor-widget)[ Packagist](https://packagist.org/packages/zkf/ueditor)[ RSS](/packages/zkf-ueditor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

百度UEditor
=========

[](#百度ueditor)

[![Latest Stable Version](https://camo.githubusercontent.com/4884e3bcf7f0c4f33b686f71ecde13f37a407dafa798ead9099e276e9cd0b301/68747470733a2f2f706f7365722e707567782e6f72672f6b756368612f75656469746f722f762f737461626c65)](https://packagist.org/packages/kucha/ueditor) [![Total Downloads](https://camo.githubusercontent.com/ebfad9ca39f8062242e44530e9c8974d05f813fd0e5ff1b9638449e4e8b52300/68747470733a2f2f706f7365722e707567782e6f72672f6b756368612f75656469746f722f646f776e6c6f616473)](https://packagist.org/packages/kucha/ueditor)

### 安装

[](#安装)

Either run

```
$ php composer.phar require zkf/ueditor "*"

```

or add

```
"zkf/ueditor": "*"

```

to the `require` section of your `composer.json` file.

### 应用

[](#应用)

controller:

```
public function actions()
{
    return [
        'upload' => [
            'class' => 'zkf\ueditor\UEditorAction',
        ]
    ];
}

```

view:

```
echo \zkf\ueditor\UEditor::widget(['name' => 'xxxx']);

```

或者：

```
echo $form->field($model,'colum')->widget('zkf\ueditor\UEditor',[]);

```

### 说明

[](#说明)

`ueditor`只支持2种语言，`en-us`和`zh-cn`,默认跟随系统语言 `Yii::$app->language`,可以通过2种方式设置，1.修改系统语言，在`main.php`(高级版) 或者`web.php`(基础版)添加`'language' => 'zh-CN',`。2.实例化的时候配置语言选项，见下边配置

### 配置相关

[](#配置相关)

##### 编辑器相关配置，请在`view` 中配置，参数为`clientOptions`，比如定制菜单，编辑器大小等等，具体参数请查看[UEditor官网文档](http://fex-team.github.io/ueditor/)。

[](#编辑器相关配置请在view-中配置参数为clientoptions比如定制菜单编辑器大小等等具体参数请查看ueditor官网文档)

简单实例:

```
use \zkf\ueditor\UEditor;
echo UEditor::widget([
    'clientOptions' => [
        //编辑区域大小
        'initialFrameHeight' => '200',
        //设置语言
        'lang' =>'en', //中文为 zh-cn
        //定制菜单
        'toolbars' => [
            [
                'fullscreen', 'source', 'undo', 'redo', '|',
                'fontsize',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',
                'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|',
                'forecolor', 'backcolor', '|',
                'lineheight', '|',
                'indent', '|'
            ],
        ]
]);
```

##### 文件上传相关配置，请在`controller`中配置，参数为`config`,例如文件上传路径等；更多参数请参照 [config.php](https://github.com/BigKuCha/yii2-ueditor-widget/blob/master/config.php) (跟UEditor提供的config.json一样)

[](#文件上传相关配置请在controller中配置参数为config例如文件上传路径等更多参数请参照-configphp-跟ueditor提供的configjson一样)

简单实例:

```
public function actions()
{
    return [
        'upload' => [
            'class' => 'zkf\ueditor\UEditorAction',
            'config' => [
                "imageUrlPrefix"  => "http://www.baidu.com",//图片访问路径前缀
                "imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" //上传保存路径
                "imageRoot" => Yii::getAlias("@webroot"),
            ],
        ]
    ];
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b205831713f0e4d27c1161da53b2eb8cc91d793d32cfaeda632b2da5dd29e53?d=identicon)[liushiwei](/maintainers/liushiwei)

---

Top Contributors

[![BigKuCha](https://avatars.githubusercontent.com/u/5095944?v=4)](https://github.com/BigKuCha "BigKuCha (31 commits)")[![mackong](https://avatars.githubusercontent.com/u/2212586?v=4)](https://github.com/mackong "mackong (4 commits)")[![eworthcms](https://avatars.githubusercontent.com/u/5815004?v=4)](https://github.com/eworthcms "eworthcms (4 commits)")[![wuangjs](https://avatars.githubusercontent.com/u/12403874?v=4)](https://github.com/wuangjs "wuangjs (2 commits)")[![kunx-edu](https://avatars.githubusercontent.com/u/14202749?v=4)](https://github.com/kunx-edu "kunx-edu (1 commits)")[![eecjimmy](https://avatars.githubusercontent.com/u/7401963?v=4)](https://github.com/eecjimmy "eecjimmy (1 commits)")[![purevirtual](https://avatars.githubusercontent.com/u/1276840?v=4)](https://github.com/purevirtual "purevirtual (1 commits)")

### Embed Badge

![Health badge](/badges/zkf-ueditor/health.svg)

```
[![Health](https://phpackages.com/badges/zkf-ueditor/health.svg)](https://phpackages.com/packages/zkf-ueditor)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
