Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

SebastiaanKloos/filament-code-editor

Repository files navigation

Code editor for Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.