Simplemde markdown editor extension for laravel-admin which supports uploading image
rainsens/simplemde is a Laravel package for simplemde markdown editor extension for laravel-admin which supports uploading image.
It currently has 2 GitHub stars and 27 downloads on Packagist (latest version 1.1.0).
Install it with composer require rainsens/simplemde.
Discover more Laravel packages by rainsens
or browse all Laravel packages to compare alternatives.
Last updated
Simplemde is a great markdown editor, this extension is used to integrate Simplemde into the laravel-admin form.

composer require rainsens/simplemde
composer require intervention/image
Then
php artisan vendor:publish --tag=laravel-admin-simplemde
php artisan storage:link
In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.
'extensions' => [
'simplemde' => [
// Set to false if you want to disable this extension
'enable' => true,
// Set upload url for attachment
'upload_url' => 'attachments/upload',
// If you want to set an alias for the calling method
//'alias' => 'markdown',
// Editor configuration
'config' => [
]
]
]
The configuration of the editor can be found in Simplemde Documentation
'config' => [
'autofocus' => true,
'placeholder' => 'xxxx',
....
]
Use it in the form:
$form->simplemde('content');
Set height
$form->simplemde('content')->height(500);
If the method alias is specified in the configuration as markdown
$form->markdown('content');
Licensed under The MIT License (MIT).