PHPackages                             aoding9/dcat-tinymce-axupimgs - 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. aoding9/dcat-tinymce-axupimgs

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

aoding9/dcat-tinymce-axupimgs
=============================

tinymce富文本多图上传（dcat-admin扩展）

1.0.3(6mo ago)257MITHTMLPHP ^7.2|^8.0

Since Jun 14Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/aoding9/dcat-tinymce-axupimgs)[ Packagist](https://packagist.org/packages/aoding9/dcat-tinymce-axupimgs)[ RSS](/packages/aoding9-dcat-tinymce-axupimgs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

简介
--

[](#简介)

dcat扩展：tinymce富文本多图上传

效果：

[![Laravel](https://camo.githubusercontent.com/a334fd9bae731fde796253100692340909838a526808a1e5561e50e308865a79/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f302e706e67)](https://camo.githubusercontent.com/a334fd9bae731fde796253100692340909838a526808a1e5561e50e308865a79/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f302e706e67)

[![Laravel](https://camo.githubusercontent.com/e07989c8b911432913ccf3a202502e61815585f411c1ab60f6752b4b5098a620/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f312e706e67)](https://camo.githubusercontent.com/e07989c8b911432913ccf3a202502e61815585f411c1ab60f6752b4b5098a620/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f312e706e67)

[![Laravel](https://camo.githubusercontent.com/71f8463aa67bfad3db6b6d72e1a26ebc225de229356e5c3625245c126827a822/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f322e706e67)](https://camo.githubusercontent.com/71f8463aa67bfad3db6b6d72e1a26ebc225de229356e5c3625245c126827a822/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f322e706e67)

[![Laravel](https://camo.githubusercontent.com/7bcac8e1a147b44363eb513da2382cac7976dc30e991db8bfd7057664e1ecf08/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f332e706e67)](https://camo.githubusercontent.com/7bcac8e1a147b44363eb513da2382cac7976dc30e991db8bfd7057664e1ecf08/68747470733a2f2f6f73732e7469616e77652e6e65742f616f64696e67392f332e706e67)

安装
--

[](#安装)

第一步：`composer require aoding9/dcat-tinymce-axupimgs`

如果安装失败，切换官方源（阿里云镜像试了装不上）

`composer config repo.packagist composer https://packagist.org`

因为官方源下载比较慢，国内镜像又有各种问题可能导致安装失败，可以把以下代码添加到composer.json，直接从github安装

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/aoding9/dcat-tinymce-axupimgs"
    }
  ]
}
```

第二步：`php artisan vendor:publish --provider="Aoding9\Dcat\TinymceAxupimgs\TinymceServiceProvider`

发布静态资源到public目录

配置
--

[](#配置)

修改config/admin.php，在directory中添加

image\_editor：自定义上传目录，不填则传到Editor组件默认上传目录`'tinymce/images`

image\_upload\_url\_editor：自定义上传接口，不填则使用Editor组件图片上传接口

```
//...
'upload'=> [

        // Disk in `config/filesystem.php`.
        // 如果要上传oss，把disk改成qiniu或者别的驱动，然后配置好oss参数就行了
        'disk'      => 'admin',

        // Image and file upload path under the disk above.
        'directory' => [
            'image'        => 'images',
            'file'         => 'files',
            'image_editor' => 'images/editor/' . today()->toDateString(), // 全局修改多图上传目录
            'image_upload_url_editor' => null, // 全局修改多图上传接口
        ]
```

使用
--

[](#使用)

在控制器form方法中使用editor即可

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

      // ->imageDirectory('custom_directory') 局部修改图片上传目录
      // ->imageUrl('custom_api_url') 局部修改图片上传接口
```

更新
--

[](#更新)

- 1.0.1 （2023-6-30）
    - 配置项新增image\_upload\_url\_editor，用于修改图片上传接口
- 1.0.2（2025-10-22）
    - 支持php8
- 1.0.3（2025-11-08）
    - 调整图片默认上传目录，若未配置image\_editor，则与dcat默认的富文本图片上传目录一致，即'tinymce/images`，可通过imageDirectory改变。
    - 修复控制器中使用imageDirectory修改自定义目录不生效的bug

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance73

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~292 days

Total

4

Last Release

181d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

1.0.2PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e5e1e3041c8541f3a449f0d82e32daa0dd3cd5b6b2d9eccb6c32a1229c4b1d2?d=identicon)[aoding9](/maintainers/aoding9)

---

Top Contributors

[![aoding9](https://avatars.githubusercontent.com/u/65276046?v=4)](https://github.com/aoding9 "aoding9 (13 commits)")

### Embed Badge

![Health badge](/badges/aoding9-dcat-tinymce-axupimgs/health.svg)

```
[![Health](https://phpackages.com/badges/aoding9-dcat-tinymce-axupimgs/health.svg)](https://phpackages.com/packages/aoding9-dcat-tinymce-axupimgs)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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