PHPackages                             puzzle9/dact-admin-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. puzzle9/dact-admin-wang-editor

ActiveLibrary

puzzle9/dact-admin-wang-editor
==============================

WangEditor extension for dcat-admin

0.03(5y ago)3842MITPHPPHP &gt;=7.1.0

Since Sep 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/puzzle9/dact-admin-wang-editor)[ Packagist](https://packagist.org/packages/puzzle9/dact-admin-wang-editor)[ Docs](https://github.com/puzzle9/dact-admin-wang-editor)[ RSS](/packages/puzzle9-dact-admin-wang-editor/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Dcat Admin扩展 - WangEditor
=========================

[](#dcat-admin扩展---wangeditor)

注: 使用此扩展将会导致 `/admin/helpers/extensions` 打开报错 因 配置文件不是 key / value 格式

`WangEditor` [4.x](https://github.com/wangeditor-team/we-next) 版本编辑器

安装
--

[](#安装)

```
composer require puzzle9/dact-admin-wang-editor
```

```
php artisan admin:import dact-admin-wang-editor
```

`config/admin-extensions.php`

```
    'extensions' => [
        'dact-admin-wang-editor' => [
            'enable' => true,
            // 储存 disk
            'disk' => 'public',
            // http://www.wangeditor.com/doc/pages/03-配置菜单/
            'config' => [
                // 设置默认 zIndex
                'zIndex' => 1,
                // 粘贴样式的过滤
                'pasteFilterStyle' => true,
                // 粘贴内容中的图片
                'pasteIgnoreImg' => true,
                // 上传图片大小
                'uploadImgMaxSize' => 5 * 1024 * 1024, // 2M
                // 一次最多能传几张图片
                'uploadImgMaxLength' => 5,
                // 插入网络图片的功能
                'showLinkImg' => false,
                // 菜单
                'menus' => [
                    'head',
                    'bold',
                    'customFontSize',
                    'fontName',
                    'italic',
                    'underline',
                    'strikeThrough',
                    'indent',
                    'lineHeight',
                    'foreColor',
                    'backColor',
                    // 'link',
                    'list',
                    'justify',
                    // 'quote',
                    // 'emoticon',
                    'image',
                    // 'video',
                    // 'table',
                    // 'code',
                    'splitLine',
                    'undo',
                    'redo',
                ],
            ],
        ],
    ],
```

使用
--

[](#使用)

### 基本使用

[](#基本使用)

```
$form->editor('content')->height(500)->required();
```

### 修改编辑器高度

[](#修改编辑器高度)

```
$form->editor('content')->height(500);
```

### 修改编辑器zIndex

[](#修改编辑器zindex)

```
$form->editor('content')->zIndex(1);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

2058d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

extensioneditordcat admin

### Embed Badge

![Health badge](/badges/puzzle9-dact-admin-wang-editor/health.svg)

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

###  Alternatives

[abbotton/dcat-sku-plus

基于Dcat Admin的SKU扩展增强版

542.2k](/packages/abbotton-dcat-sku-plus)[sparkinzy/dcat-marketplace

Dcat扩展市场

381.3k](/packages/sparkinzy-dcat-marketplace)[abovesky/dcat-media-player

Dcat Admin 音视频预览扩展

202.3k](/packages/abovesky-dcat-media-player)

PHPackages © 2026

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