PHPackages                             hxsen/laravel-admin-editormd - 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. hxsen/laravel-admin-editormd

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

hxsen/laravel-admin-editormd
============================

EditorMD extension for laravel-admin

v1.1.4(6y ago)1511MITJavaScriptPHP &gt;=7.0.0CI failing

Since Apr 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hxsen/laravel-admin-editormd)[ Packagist](https://packagist.org/packages/hxsen/laravel-admin-editormd)[ Docs](https://github.com/hxsen/laravel-admin-editormd)[ RSS](/packages/hxsen-laravel-admin-editormd/feed)WikiDiscussions master Synced 3w ago

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

laravel-admin extension
=======================

[](#laravel-admin-extension)

### 安装

[](#安装)

```
composer require hxsen/laravel-admin-editormd

```

### 发布资源

[](#发布资源)

```
php artisan vendor:publish --provider=Hxsen\EditorMd\EditorMdServiceProvider

```

### 配置

[](#配置)

```
'extensions' => [

        'editormd' => [
            // Set to false if you want to disable this extension
            'enable' => true,
            // Set to true if you want to take advantage the screen length for your editormd instance.
            'wideMode' => false,
            // Set to true when the instance included in larave-admin tab component.
            'dynamicMode' => false,
            // Editor.js configuration (Refer to http://pandao.github.io/editor.md/)
            'config' =>[
                'path' => '/vendor/hxsen/editormd/editor.md/lib/',
                'width' => '100%',
                'height' => 600,
                'emoji' => true,
                // 主题
                'theme' => 'dark',
                'previewTheme' => 'dark',
                'editorTheme' => 'pastel-on-dark',
                // 图片上传
                'imageUpload' => true,
                'imageFormats' => ['jpg', 'jpeg', 'gif', 'png', 'bmp', 'webp'],
                'imageUploadURL' => '/admin/editormd/upload',

                // 'markdown' => 'md',
                'codeFold' => true,
                'taskList' => true,
            ],
        ]

```

### 用法

[](#用法)

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

### 自定义扩展

[](#自定义扩展)

本扩展是在editormd官方插件基础上封装的适用于laravel-admin的扩展包。 为了更加开发者后期更加方面的后期开发，本插件的编辑器变量，已声明成了全局变量。你们可以根据原本文档说明，对自己的编辑器，做更加针对性的配置。 如需更多了解，戳[这里](http://editor.md.ipandao.com/)查看官方文档，了解更多。

- 例如监听编辑器改变事件

```
$('#editorMdcontent').settings.onchange = function(){
    // console.log("onchange =>", this, this.id, this.state);
};

```

- 自定义快捷键事件

```
$('#editorMdcontent').addKeyMap = function(){
    "Ctrl-S": function(cm) {
        // alert("Ctrl+S");
        saveContent();
    },
    "Ctrl-A": function(cm) { // default Ctrl-A selectAll
        // custom
        alert("Ctrl+A");
        cm.execCommand("selectAll");
    },
};

```

### 注意

[](#注意)

如果您想在Laravel-admin选项卡组件中使用，你应该将该配置选项"dynamicMode"设置为true，以避免错误。

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

7

Last Release

2267d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5113126?v=4)[houxin](/maintainers/houxin)[@houxin](https://github.com/houxin)

---

Top Contributors

[![hxsen](https://avatars.githubusercontent.com/u/41824387?v=4)](https://github.com/hxsen "hxsen (7 commits)")

---

Tags

extensionlaravel-adminlaravel-admin-editormd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hxsen-laravel-admin-editormd/health.svg)

```
[![Health](https://phpackages.com/badges/hxsen-laravel-admin-editormd/health.svg)](https://phpackages.com/packages/hxsen-laravel-admin-editormd)
```

###  Alternatives

[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13344.3k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/grid-lightbox

Turn your grid into a lightbox &amp; gallery

58184.4k2](/packages/laravel-admin-ext-grid-lightbox)[laravel-admin-ext/grid-sortable

Sort the grid data by drag and drop rows

42122.4k](/packages/laravel-admin-ext-grid-sortable)[laravel-admin-ext/phpinfo

Show php information in laravel-admin

2821.1k](/packages/laravel-admin-ext-phpinfo)[jxlwqq/quill

quill editor for laravel-admin

2428.0k](/packages/jxlwqq-quill)[cyd622/laravel-admin-ext-echarts

Use Echarts in laravel-admin

349.6k](/packages/cyd622-laravel-admin-ext-echarts)

PHPackages © 2026

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