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

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

chguoxi/wang-editor
===================

wangEditor extension for laravel-admin

v2.0.1(3y ago)07MITJavaScriptPHP &gt;=7.0.0

Since Sep 9Pushed 3y agoCompare

[ Source](https://github.com/chguoxi/wangEditor)[ Packagist](https://packagist.org/packages/chguoxi/wang-editor)[ Docs](https://github.com/laravel-admin-extensions/wangEditor)[ RSS](/packages/chguoxi-wang-editor/feed)WikiDiscussions master Synced 2d ago

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

wangEditor extension for laravel-admin
======================================

[](#wangeditor-extension-for-laravel-admin)

这是一个`laravel-admin`扩展，用来将`wangEditor`集成进`laravel-admin`的表单中

laravel-adminextension1.x1.x2.x2.x截图
--

[](#截图)

[![wx20180904-103609](https://user-images.githubusercontent.com/1479100/45007036-65573b80-b02e-11e8-8b27-7ced3db47085.png)](https://user-images.githubusercontent.com/1479100/45007036-65573b80-b02e-11e8-8b27-7ced3db47085.png)

安装
--

[](#安装)

```
// laravel-admin 1.x
composer require "laravel-admin-ext/wang-editor:1.*"

// laravel-admin 2.x
composer require laravel-admin-ext/wang-editor
```

然后

```
php artisan vendor:publish --tag=laravel-admin-wangEditor
```

配置
--

[](#配置)

在`config/admin.php`文件的`extensions`，加上属于这个扩展的一些配置

```
    'extensions' => [

        'wang-editor' => [

            // 如果要关掉这个扩展，设置为false
            'enable' => true,

            // 编辑器的配置
            'config' => [

            ]
        ]
    ]
```

编辑器的配置可以到[wangEditor文档](https://www.kancloud.cn/wangfupeng/wangeditor3/335776)找到，比如配置上传图片的地址[上传图片](https://www.kancloud.cn/wangfupeng/wangeditor3/335782)

```
    'config' => [
        // `/upload`接口用来上传文件，上传逻辑要自己实现，可参考下面的`上传图片`
        'uploadImgServer' => '/upload'
    ]
```

使用
--

[](#使用)

在form表单中使用它：

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

上传图片
----

[](#上传图片)

图片上传默认使用base64格式化后与文本内容一起存入数据库，如果要上传图片到本地接口，那么下面是这个接口对应的action代码示例：

```
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;

public function upload(Request $request)
{
    $urls = [];

    foreach ($request->file() as $file) {
        $urls[] = Storage::url($file->store('images'));
    }

    return [
        "errno" => 0,
        "data"  => $urls,
    ];
}

```

> **Note:** 配置路由指向这个action，存储的disk配置在`config/filesystem.php`中，这个需参考laravel官方文档。

支持
--

[](#支持)

如果觉得这个项目帮你节约了时间，不妨支持一下;)

[![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 70.8% 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 ~181 days

Recently: every ~246 days

Total

9

Last Release

1349d ago

Major Versions

v1.2.1 → 2.0.x-dev2020-09-27

### Community

Maintainers

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

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (17 commits)")[![chguoxi](https://avatars.githubusercontent.com/u/5838990?v=4)](https://github.com/chguoxi "chguoxi (6 commits)")[![cimoing](https://avatars.githubusercontent.com/u/7523253?v=4)](https://github.com/cimoing "cimoing (1 commits)")

---

Tags

extensioneditorlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-admin-ext/summernote

Summernote extension for laravel-admin

37140.5k](/packages/laravel-admin-ext-summernote)[laravel-admin-ext/ckeditor

Integrate CKEDITOR into laravel-admin

30183.6k1](/packages/laravel-admin-ext-ckeditor)[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13443.9k](/packages/laravel-admin-ext-china-distpicker)[jxlwqq/quill

quill editor for laravel-admin

2427.1k](/packages/jxlwqq-quill)[laravel-admin-ext/sparkline

Integrates jQuery sparkline into laravel-admin

161.1k](/packages/laravel-admin-ext-sparkline)

PHPackages © 2026

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