Skip to content
Simplemde markdown editor extension for laravel-admin
Branch: master
Clone or download
Latest commit 49bd152 Dec 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources first commit Sep 6, 2018
src
.gitignore
LICENSE
README.md
composer.json

README.md

Simplemde editor extension for laravel-admin

Simplemde is a great markdown editor, this extension is used to integrate Simplemde into the laravel-admin form.

Screenshot

wx20180906-130207

Installation

composer require laravel-admin-ext/simplemde

Then

php artisan vendor:publish --tag=laravel-admin-simplemde

Configuration

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,
            
            // 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',
        ....
    ]

Usage

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');

Donate

Help keeping the project development going, by donating a little. Thanks in advance.

PayPal Me

-1

License

Licensed under The MIT License (MIT).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.