PHPackages                             death\_satan/dcat-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. death\_satan/dcat-wang-editor

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

death\_satan/dcat-wang-editor
=============================

Dcat-admin WangEditor Form Extend

v1.0.22(4y ago)1240MITJavaScriptPHP &gt;=7.4.0

Since Sep 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zds-s/dcat-wang-editor)[ Packagist](https://packagist.org/packages/death_satan/dcat-wang-editor)[ Docs](https://github.com/death_satan/dcat-wang-editor)[ RSS](/packages/death-satan-dcat-wang-editor/feed)WikiDiscussions main Synced today

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

Dcat Admin Form WangEditor扩展 拖拽上传,复制上传
======================================

[](#dcat-admin-form-wangeditor扩展-拖拽上传复制上传)

部分代码参考[dcat-markdown](https://gitee.com/dcat-phper/dcat-markdown)
-----------------------------------------------------------------

[](#部分代码参考dcat-markdown)

[WangEditor文档](https://www.wangeditor.com/doc/)
-----------------------------------------------

[](#wangeditor文档)

示例
--

[](#示例)

---

[![](example/img.png)](example/img.png)

---

安装和使用
=====

[](#安装和使用)

composer 安装
-----------

[](#composer-安装)

---

```
composer require death_satan/dcat-wang-editor -vvv
```

---

使用
--

[](#使用)

在form中使用
--------

[](#在form中使用)

---

```
/**
* @var $form \Dcat\Admin\Form
 */
$form->wangEditor('column')
```

---

所有的配置参数请参考官方参数,本扩展只做了极小的兼容性处理
=============================

[](#所有的配置参数请参考官方参数本扩展只做了极小的兼容性处理)

建议使用phpstorm编辑器,并且安装扩展后运行 `php artisan admin:ide` 命令生成ide提示文件
-------------------------------------------------------------

[](#建议使用phpstorm编辑器并且安装扩展后运行-php-artisan-adminide-命令生成ide提示文件)

已开放的接口
------

[](#已开放的接口)

  方法名 参数 说明 示例   colors array $colors 配置颜色（文字颜色、背景色） [官方文档](https://www.wangeditor.com/doc/pages/03-%E9%85%8D%E7%BD%AE%E8%8F%9C%E5%8D%95/02-%E9%85%8D%E7%BD%AE%E9%A2%9C%E8%89%B2.html)   height int $height 设置编辑器容器高度 参考WangEditor文档   emotions array $emotions 配置表情图标 [emotions示例](./example/emotions.md)   Menu array $data 定义显示哪些菜单和菜单的顺序 [ 官方文档地址(json换成数组传入即可)](https://www.wangeditor.com/doc/pages/03-%E9%85%8D%E7%BD%AE%E8%8F%9C%E5%8D%95/01-%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95.html)   ExcludeMenus array $data 剔除少数菜单 [ 官方文档地址(json换成数组传入即可)](https://www.wangeditor.com/doc/pages/03-%E9%85%8D%E7%BD%AE%E8%8F%9C%E5%8D%95/01-%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95.html)   zIndex int $zIndex 配置 z-index 参考WangEditor文档   focus bool $focus=false 自动 focus [ 官方文档](https://www.wangeditor.com/doc/pages/01-%E5%BC%80%E5%A7%8B%E4%BD%BF%E7%94%A8/08-%E8%87%AA%E5%8A%A8focus.html)   showFullScreen bool $show=false 设置全屏功能 参考WangEditor文档   showMenuTooltips bool $show=false 设置菜单栏提示 参考WangEditor文档   menuTooltipPosition string $position = 'down' 设置菜单栏提示为\[下标:up,下标:down\] 参考WangEditor开发文档   pasteFilterStyle bool $state = false 关闭粘贴样式的过滤 同上   pasteIgnoreImg bool $ignore=true 忽略粘贴内容中的图片 同上   disk string $disk = 'local' 设置文件驱动 config/filesystems.php里面设置的disk   ImgDirectory string $path 设置图片上传路径 ...   VideoDirectory string $path 设置视频上传路径 ...   setCss string $css 设置highlight的样式css名 [示例](./example/setCss.md)   lang string $lang='en' 设置语言 目前官方默认可选的只有 zh-CN en

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

5

Last Release

1686d ago

### Community

Maintainers

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

---

Tags

extensiondcat admin

### Embed Badge

![Health badge](/badges/death-satan-dcat-wang-editor/health.svg)

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

###  Alternatives

[sparkinzy/dcat-distpicker

省市区地址选择器，支持select2

272.7k1](/packages/sparkinzy-dcat-distpicker)[sparkinzy/dcat-marketplace

Dcat扩展市场

381.3k](/packages/sparkinzy-dcat-marketplace)

PHPackages © 2026

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