Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T16:11:29.000Z (about 6 years ago)
- Last Synced: 2024-10-14T04:33:18.920Z (26 days ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- 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.
[![PayPal Me](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/zousong)
![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)
License
------------
Licensed under [The MIT License (MIT)](LICENSE).