PHPackages                             bestyii/yii2-ueditor-plus - 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. bestyii/yii2-ueditor-plus

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

bestyii/yii2-ueditor-plus
=========================

UEditor Plus 基于 UEditor 二次开发的富文本编辑器，让UEditor重新焕发活力

3.9.0(1y ago)041MITHTML

Since Aug 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bestyii/yii2-ueditor-plus)[ Packagist](https://packagist.org/packages/bestyii/yii2-ueditor-plus)[ RSS](/packages/bestyii-yii2-ueditor-plus/feed)WikiDiscussions main Synced 1mo ago

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

UEditorPlus
===========

[](#ueditorplus)

基于 UEditor 二次开发的富文本编辑器，让UEditor重新焕发活力, 是一套开源的在线HTML编辑器，主要用于让用户在网站上获得所见即所得编辑效果，开发人员可以用 UEditor 把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。 UEditorPlus 使用 JavaScript 编写，本扩展已完美实现与 Yii2 的兼容开发。

本组件包版本号引用UEditorPlus版本号,方便对齐.

安装:
---

[](#安装)

使用 [composer](http://getcomposer.org/download/) 下载:

```
# 3.x(yii >= 2.0.16):
composer require bestyii/yii2-ueditor-plus:"~3.9"

# 开发版:
composer require bestyii/yii2-ueditor-plus:"dev-master"

```

使用:
---

[](#使用)

在`Controller`中添加:

```
public function actions()
{
    return [
        'UeUpload' => [
            'class' => 'bestyii\ueditor\plus\UEditorPlusUpload',
            // 可选参数, 参考 config.php
            'config' => [
                'imageMaxSize' => 1*1024*1024,
                'imageAllowFiles' => ['.png', '.jpg', '.jpeg', '.gif', '.bmp'],
                'imagePathFormat' => '/uploads/image/{yyyy}{mm}/{yy}{mm}{dd}_{hh}{ii}{ss}_{rand:4}',
                'thumbStatus' => false,
                'thumbWidth' => 300,
                'thumbHeight' => 200,
                'thumbMode' => 'outbound',
            ],
        ],
    ];
}
```

在`View`中添加:

```
// 1. 简单调用(基于模型):
$form->field($model, 'content')->widget('bestyii\ueditor\plus\UEditorPlus');

// 2. 带参数调用(此模式下仅`$editorOptions`参数可用):
$form->field($model, 'content')->widget('bestyii\ueditor\plus\UEditorPlus',[
    'editorOptions' => [
        'initialFrameWidth' => 1000,
        'initialFrameHeight' => 500,
    ],
]);

// 3. 不带`$model`调用(已列出所有可用参数, 可适当忽略):
\bestyii\ueditor\plus\UEditorPlus::widget([
    'id' => 'editor',
    'attribute' => 'content',
    //'name' => 'content',
    'value' => '初始化编辑器时的内容',
    'editorOptions' => [
        'initialFrameWidth' => 1000,
        'initialFrameHeight' => 500,
    ],
]);
```

编辑器相关配置，请在`view`中配置，参数为`editorOptions`，比如定制菜单，编辑器大小等等，具体参数请查看[UeditorPlus官网文档](https://open-doc.modstart.com/ueditor-plus/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

647d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/383284?v=4)[Yang](/maintainers/ezsky)[@ezsky](https://github.com/ezsky)

---

Tags

javascripthtmlyii2extensioneditorueditormodstart

### Embed Badge

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

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

###  Alternatives

[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)[froala/yii2-froala-editor

A beautiful WYSIWYG HTML text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

109229.5k6](/packages/froala-yii2-froala-editor)[fedemotta/yii2-widget-datatables

DataTables widget for Yii2

34179.4k1](/packages/fedemotta-yii2-widget-datatables)[jodit/yii2-jodit

Jodit - awesome WYSIWYG Editor like widget for Yii2

1621.5k](/packages/jodit-yii2-jodit)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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