PHPackages                             flywi/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flywi/yii2-ueditor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flywi/yii2-ueditor
==================

UEditor for Yii2

v1.1(7y ago)01JavaScript

Since Jul 27Pushed 7y agoCompare

[ Source](https://github.com/Flywi/yii2-ueditor)[ Packagist](https://packagist.org/packages/flywi/yii2-ueditor)[ RSS](/packages/flywi-yii2-ueditor/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

yii2-ueditor
============

[](#yii2-ueditor)

UEditor for Yii2

安装
--

[](#安装)

推荐使用

```
$ php composer.phar require flywi/yii2-ueditor "@dev"

```

或者将

```
"flywi/yii2-ueditor": "@dev"

```

加入到`composer.json`的`require`段中

使用
--

[](#使用)

在`main.php`中加入

```
    'modules' => [
        ....
               'editor' => [
                   'class' => \Flywi\Editor\module\Module::class,
                   'actionMap' => [
                      'uploadimage' => function(\yii\web\UploadedFile $file ,$config){
                         ...
                      }
                   ],
                   'editorConfig' => [
                       "imageActionName" => "uploadimage", /* 执行上传图片的action名称 */
                       "imageFieldName" => "upfileimage", /* 提交的图片表单名称 */
                       // 其他Ueditor后端配置
                   ],
               ]
    ],
```

在`ActiveForm`中使用:

```
...
echo $form->field($model, 'content')->widget(\Flywi\Editor\UEditor::class, [
    'id' => 'contentID',
    'config' => [
      // Ueditor的部分配置
      'serverUrl' => Url:to('..editor') // 对应于modules中editor的url
    ]
]);
...
```

直接使用:

```
...
echo \Flywi\Editor\UEditor::widget([
        'name' => 'inputName',
        'id' => 'contentId',
        'config' => [
           // Ueditor的部分配置
             'serverUrl' => Url:to('..editor') // 对应于modules中editor的url
        ]
 ]);
...
```

其他
--

[](#其他)

UEditor [配置参考](http://ueditor.baidu.com)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2845d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89499ea39a8c9f290d5e95a7b1426e8654f5bfc0828a616a230b2e5739529dd2?d=identicon)[Flywi](/maintainers/Flywi)

---

Top Contributors

[![Flywi](https://avatars.githubusercontent.com/u/23497646?v=4)](https://github.com/Flywi "Flywi (11 commits)")

---

Tags

editorueditoryii2yii2-widgets

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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