Code editor for Filament
This package provides a code editor form field type for Filament. It's based on CodeMirror 6.
Installation
You can install the package via composer:
composer require sebastiaankloos/filament-code-editor
Usage
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');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.