https://github.com/laravel-admin-extensions/css-editor
CSS editor extension for laravel-admin based on code-mirror
https://github.com/laravel-admin-extensions/css-editor
Last synced: 3 months ago
JSON representation
CSS editor extension for laravel-admin based on code-mirror
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/css-editor
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-12T05:11:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T16:11:29.000Z (almost 7 years ago)
- Last Synced: 2025-03-19T09:14:34.523Z (3 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - css-editor - CSS 语言编辑器 (扩展包 / 字段类扩展包)
README
CSS editor extension for laravel-admin based on code-mirror
======## Installation
```bash
composer require laravel-admin-ext/css-editorphp artisan vendor:publish --tag=laravel-admin-code-mirror
```## Configuration
In `extensions` section of file `config/admin.php`,add following configurations
```php'extensions' => [
'css-editor' => [
// set to false if you want to disable this exteions
'enable' => true,
// editor configuration
'config' => [
]
]
]```
The configuration of the editor can be found in [CodeMirror Documents](https://codemirror.net/)
## Usage
Use it in form
```php
$form->css('code');$form->scss('code');
$form->less('code');
```
Set height
```php
$form->css('code')->height(500);
```## Donate
> Help keeping the project development going, by donating a little. Thanks in advance.
[](https://www.paypal.me/zousong)

License
------------
Licensed under [The MIT License (MIT)](LICENSE).