This package provides a code editor form field type for Filament. It's based on CodeMirror 6.
You can install the package via composer:
composer require sebastiaankloos/filament-code-editor
use SebastiaanKloos\FilamentCodeEditor\Components\CodeEditor;
CodeEditor::make('custom_css'),
If you are using this package without Filament Admin, you should add the JS file manually.
// You can add this to your app.js file
require('../../vendor/sebastiaankloos/filament-code-editor/dist/filament-tools');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.