Components/MarkdownEditor.php

filament · packages/forms/src/Components/MarkdownEditor.php · php · MIT
ui, tag:embed-classified

Markdown editor form component for Filament, enabling rich text editing with file attachments.

// Source: https://github.com/filamentphp/filament | License: MIT | Copyright Filament
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Filament\Forms\Components;

use Closure;
use Filament\Support\Components\Contracts\HasEmbeddedView;
use Filament\Support\Concerns\CanConfigureCommonMark;
use Filament\Support\Concerns\HasExtraAlpineAttributes;
use Filament\Support\Facades\FilamentAsset;
use Filament\Support\View\ComponentAttributeBag as FilamentComponentAttributeBag;
use Illuminate\Support\Js;
use LogicException;

class MarkdownEditor extends Field implements Contracts\CanBeLengthConstrained, HasEmbeddedView
{
    // Security: Like the rich editor, the markdown editor sends raw content
    // to the backend. When rendering in Blade views, always sanitize wi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key