PHPackages                             sparkinzy/dcat-kindeditor - 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. sparkinzy/dcat-kindeditor

ActiveLibrary

sparkinzy/dcat-kindeditor
=========================

帮助数据表单调用kindeditor

1.1.1(3y ago)7832[1 issues](https://github.com/Sparkinzy/dcat-kindeditor/issues)1MITPHPPHP &gt;=7.1.0

Since Dec 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Sparkinzy/dcat-kindeditor)[ Packagist](https://packagist.org/packages/sparkinzy/dcat-kindeditor)[ Docs](https://github.com/sparkinzy/dcat-kindeditor)[ RSS](/packages/sparkinzy-dcat-kindeditor/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (18)Used By (1)

Dcat Admin Extension
====================

[](#dcat-admin-extension)

扩展表单字段: **kindeditor**

kindeditor
----------

[](#kindeditor)

此版本kindeditor为个人分支，其中上传组件已删除flash，改为plupload.js 作为核心上传组件，并进行一定程度的精简

默认使用
----

[](#默认使用)

```
$form->kindeditor('description');
# 重置展示项
$form->kindeditor('description')
    ->options([
    'items'=>[
    'source','insertimages','fontsize'
]
]);

```

上传回调
----

[](#上传回调)

允许上传文件后对回调数据格式化，适配现有第三方上传结构返回的数据结构。

自定义图片上传回调

```
       $afterUploadedCallback=JavaScript::make(
            kindeditor('editor')->options(['afterUploaded'=>$afterUploadedCallback])->url($custom_upload_url);'
```

只读模式
----

[](#只读模式)

```
$form->kindeditor('desc')->url($custom_upload_url)->readonly();
```

新增全局js变量window.editors 对象
-------------------------

[](#新增全局js变量windoweditors-对象)

可通过表单name值获取对应的kindeditor实例,实现跨作用域调用编辑器的方法 例如:

```

```

```
var editor = window.editors.content;
```

当前工具栏目默认项目如下：
-------------

[](#当前工具栏目默认项目如下)

```
{
items : [
    'source',
    '|','formatblock', 'fontsize', '|', 'justifyleft', 'justifycenter', 'justifyright',
    'justifyfull', 'insertorderedlist', 'insertunorderedlist',
    'forecolor', 'hilitecolor', 'bold',
    'italic', 'underline', 'lineheight',
    'table',  'insertimages',
    'preview',
    'fullscreen',
]
}
```

> 可用栏目如下：

item\_name项目sourceHTML代码preview预览undo后退redo前进cut剪切copy复制paste粘贴plainpaste粘贴为无格式文本wordpaste从Word粘贴selectall全选justifyleft左对齐justifycenter居中justifyright右对齐justifyfull两端对齐insertorderedlist编号insertunorderedlist项目符号indent增加缩进outdent减少缩进subscript下标superscript上标formatblock段落fontname字体fontsize文字大小forecolor文字颜色hilitecolor文字背景bold粗体italic斜体underline下划线strikethrough删除线removeformat删除格式insertimages图片flashFlashmedia视音频table表格hr插入横线emoticons插入表情link超级链接unlink取消超级链接fullscreen全屏显示about关于print打印code插入程序代码mapGoogle地图baidumap百度地图lineheight行距clearhtml清理HTML代码pagebreak插入分页符quickformat一键排版insertfile插入文件template插入模板anchor插入锚点工具栏项目新增与删除
----------

[](#工具栏项目新增与删除)

```
$form->kindeditor('content')
// 在源代码后面新增一个 从Word粘贴
->appendToolbar('wordpaste','source')
// 添加一组栏目
->appendToolbar(['link','unlink'],'source')
// 在最后新增一个 插入百度地图
->appendToolbar('baidumap')
// 移除图片
->removeToolbar('insertimages');
// 删除多个项目
->removeToolbar(['justifyleft'])
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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 ~40 days

Recently: every ~46 days

Total

17

Last Release

1334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16fc8fbed8bb57e44315814548964d441eb425c5b0c8eb16bf036a3e99d960dc?d=identicon)[sparkinzy](/maintainers/sparkinzy)

---

Top Contributors

[![Sparkinzy](https://avatars.githubusercontent.com/u/8643392?v=4)](https://github.com/Sparkinzy "Sparkinzy (30 commits)")[![xiaofeng-ling](https://avatars.githubusercontent.com/u/7448460?v=4)](https://github.com/xiaofeng-ling "xiaofeng-ling (2 commits)")

---

Tags

extensiondcat admin

### Embed Badge

![Health badge](/badges/sparkinzy-dcat-kindeditor/health.svg)

```
[![Health](https://phpackages.com/badges/sparkinzy-dcat-kindeditor/health.svg)](https://phpackages.com/packages/sparkinzy-dcat-kindeditor)
```

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