PHP code example of g4b0rdev / filament-markdown-editor-cheatsheet

1. Go to this page and download the library: Download g4b0rdev/filament-markdown-editor-cheatsheet library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

g4b0rdev / filament-markdown-editor-cheatsheet example snippets


use Filament\Forms\Components\RichEditor;

RichEditor::make('content')
    ->withCheatsheet()
    ->...,

// or

use Filament\Forms\Components\MarkdownEditor;

MarkdownEditor::make('content')
    ->withCheatsheet()
    ->...,

use Filament\Forms\Components\RichEditor;

RichEditor::make('content')
    ->withCheatsheet(slideOver: true)
    ->...,

// or

use Filament\Forms\Components\MarkdownEditor;

MarkdownEditor::make('content')
    ->withCheatsheet(slideOver: true)
    ->...,
bash
php artisan vendor:publish --tag=filament-markdown-editor-cheatsheet-translations