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

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

xnzj/wang-editor-fix
====================

wangEditor extension for laravel-admin

v2.0.0(5y ago)016MITJavaScript

Since Sep 9Pushed 4y agoCompare

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

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

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

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

请使用 v1.2.2
----------

[](#请使用-v122)

请使用 v1.2.2
----------

[](#请使用-v122-1)

请使用 v1.2.2
----------

[](#请使用-v122-2)

修改了 render 方法
-------------

[](#修改了-render-方法)

```
// Editor.php
    public function render()
    {
        $this->id = str_replace('.', '', $this->id . microtime(true));

        $config = (array) WangEditor::config('config');

        $config = json_encode(array_merge([
            'zIndex'              => 0,
            'uploadImgShowBase64' => true,
        ], $config, $this->options));

        $token = csrf_token();

        $this->script =  [

        '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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 60.7% 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 ~135 days

Recently: every ~153 days

Total

9

Last Release

1721d ago

Major Versions

v1.2.1 → v2.0.02020-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/652552becbbc1388d118359ce634e667c26ea726f3b7034490667e2f10b6a953?d=identicon)[jingjin](/maintainers/jingjin)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (17 commits)")[![xnzj](https://avatars.githubusercontent.com/u/10020402?v=4)](https://github.com/xnzj "xnzj (10 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/xnzj-wang-editor-fix/health.svg)

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

###  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)
