PHPackages                             weison-tech/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. weison-tech/ueditor

ActiveLibrary

weison-tech/ueditor
===================

desc

1.2.1(9y ago)0199MITJavaScript

Since Jan 29Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (8)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 weison-tech/ueditor "*"

```

or add

```
"weison-tech/ueditor": "*"

```

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

### 应用

[](#应用)

controller:

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

```

view:

```
echo \kucha\ueditor\UEditor::widget([]);

```

或者：

```
echo $form->field($model,'colum')->widget('kucha\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 \kucha\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' => 'kucha\ueditor\UEditorAction',
            'config' => [
                "imageUrlPrefix"  => "http://www.baidu.com",//图片访问路径前缀
                "imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" //上传保存路径
                "imageRoot" => Yii::getAlias("@webroot"),
            ],
        ]
    ];
}
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 68.4% 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

Every ~119 days

Recently: every ~179 days

Total

7

Last Release

3401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad2af46e2068dc147a65dd1113be09f39b8da08b7e1e43179152f022ff027bd4?d=identicon)[xiaomalover](/maintainers/xiaomalover)

---

Top Contributors

[![BigKuCha](https://avatars.githubusercontent.com/u/5095944?v=4)](https://github.com/BigKuCha "BigKuCha (26 commits)")[![xiaomalover](https://avatars.githubusercontent.com/u/10594451?v=4)](https://github.com/xiaomalover "xiaomalover (5 commits)")[![mackong](https://avatars.githubusercontent.com/u/2212586?v=4)](https://github.com/mackong "mackong (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)")

### Embed Badge

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

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

PHPackages © 2026

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