mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
42 lines
944 B
PHP
42 lines
944 B
PHP
<?php
|
|
|
|
namespace Filament\Forms\Components;
|
|
|
|
use Closure;
|
|
use Filament\Support\Concerns\HasExtraAlpineAttributes;
|
|
|
|
class MarkdownEditor extends Field implements Contracts\CanBeLengthConstrained, Contracts\HasFileAttachments
|
|
{
|
|
use Concerns\CanBeLengthConstrained;
|
|
use Concerns\HasFileAttachments;
|
|
use Concerns\HasMaxHeight;
|
|
use Concerns\HasMinHeight;
|
|
use Concerns\HasPlaceholder;
|
|
use Concerns\InteractsWithToolbarButtons;
|
|
use HasExtraAlpineAttributes;
|
|
|
|
/**
|
|
* @var view-string
|
|
*/
|
|
protected string $view = 'filament-forms::components.markdown-editor';
|
|
|
|
/**
|
|
* @var array<string>
|
|
*/
|
|
protected array | Closure $toolbarButtons = [
|
|
'attachFiles',
|
|
'blockquote',
|
|
'bold',
|
|
'bulletList',
|
|
'codeBlock',
|
|
'heading',
|
|
'italic',
|
|
'link',
|
|
'orderedList',
|
|
'redo',
|
|
'strike',
|
|
'table',
|
|
'undo',
|
|
];
|
|
}
|