适用于 Laravel-Admin 的 MarkDown - EditorMD
composer require sharemant/laravel-admin-ext-editormd
php artisan vendor:publish --tag=laravel-admin-ext-editormd
<?php
// file: {Your_project}/config/admin.php
return [
'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 configuration write in PHP array grammar
'config' => [
'path' => '/vendor/laravel-admin-ext/editormd/editormd-1.5.0/lib/',
'width' => '100%',
'height' => 600,
],
// Editor configuration write in Javascript object grammar
'configJS' => '{onload: function() { alert("Hello!");}}'
]
]
];
$form->editormd('content');
最近访问时间:2025-06-07 06:35:28