PHPackages                             fsyd88/yii2-wang-editor - 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. fsyd88/yii2-wang-editor

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

fsyd88/yii2-wang-editor
=======================

extension of wangEditor for yii2

1.0(7y ago)03MITPHP

Since Jan 22Pushed 7y agoCompare

[ Source](https://github.com/fsyd88/yii2-wang-editor)[ Packagist](https://packagist.org/packages/fsyd88/yii2-wang-editor)[ RSS](/packages/fsyd88-yii2-wang-editor/feed)WikiDiscussions master Synced yesterday

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

Yii2 wangEditor widget
======================

[](#yii2-wangeditor-widget)

Yii2 wangEditor widget

[wangEditor 官网](http://www.wangeditor.com/)

安装
--

[](#安装)

```
php composer.phar require --prefer-dist fsyd88/yii2-wang-editor "*"

```

使用
--

[](#使用)

widget 使用：

```
echo \fsyd88\wangEditor\WangEditorWidget::widget([
    'name' => 'inputName',
]);
#或者
echo \fsyd88\wangEditor\WangEditorWidget::widget([
    'model'=>$model,
    'attribute'=>'name',
]);
```

ActiveForm 中使用：

```
$form = new \yii\widgets\ActiveForm();
echo $form->field($model, 'content')->widget(\fsyd88\wangEditor\WangEditorWidget::className());
```

文件上传

```
echo \fsyd88\wangEditor\WangEditorWidget::widget([
    'model'=>$model,
    'attribute'=>'name'
]);
#控制器中加上
public function actions() {
    return [
        'upload' => [
            'class' => 'fsyd88\wangEditor\WangEditorAction',
        ]
    ];
}

```

配置
--

[](#配置)

```
echo \fsyd88\wangEditor\WangEditorWidget::widget([
    'model'=>$model,
    'attribute'=>'name',
    'id'=>'iidd',  #id for div(container);div 容器id
    'options'=>['id'=>'inputId'],  #hidden input options; 隐藏input的选项
    'customConfig'=>[  #editor custom config info ；编辑器配置项
        'menus'=>[''head','bold','italic'],
        'uploadImgServer'=>'upload'  #upload ；上传图片 默认使用 web/uploads 目录
    ]
]);

```

更多配置见[官网配置](https://www.kancloud.cn/wangfupeng/wangeditor3/332599)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2667d ago

### Community

Maintainers

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

---

Top Contributors

[![fsyd88](https://avatars.githubusercontent.com/u/27852203?v=4)](https://github.com/fsyd88 "fsyd88 (1 commits)")

---

Tags

yii2extensioneditorwangEditor

### Embed Badge

![Health badge](/badges/fsyd88-yii2-wang-editor/health.svg)

```
[![Health](https://phpackages.com/badges/fsyd88-yii2-wang-editor/health.svg)](https://phpackages.com/packages/fsyd88-yii2-wang-editor)
```

###  Alternatives

[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[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)
