Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/clike-editor
Several c-lick language editor extensions for laravel-admin based on code-mirror
https://github.com/laravel-admin-extensions/clike-editor
Last synced: about 1 month ago
JSON representation
Several c-lick language editor extensions for laravel-admin based on code-mirror
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/clike-editor
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-11T16:39:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T05:16:52.000Z (over 6 years ago)
- Last Synced: 2024-11-02T19:33:47.821Z (about 1 month ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - clike-editor - 类 C 语言编辑器 (扩展包 / 字段类扩展包)
README
Several c-lick language editor extensions for laravel-admin based on code-mirror
======[DEMO](http://demo.laravel-admin.org/code-mirror/clike) (Login using `admin/admin`)
## Installation
```bash
composer require laravel-admin-ext/clike-editorphp artisan vendor:publish --tag=laravel-admin-code-mirror
```## 配置
在`config/admin.php`文件的`extensions`,加上属于这个扩展的一些配置
```php'extensions' => [
'clike-editor' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
// 编辑器的配置
'config' => [
]
]
]```
更多配置可以到[CodeMirror文档](https://codemirror.net/)找到
## 使用
在form表单中使用它:
```php
$form->clang('code');$form->cpp('code');
$form->csharp('code');
$form->java('code');
$form->objectivec('code');
$form->scala('code');
$form->kotlin('code');
$form->ceylon('code');
```设置高度
```php
$form->clang('code')->height(500);
```## 支持
如果觉得这个项目帮你节约了时间,不妨支持一下;)
![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)
License
------------
Licensed under [The MIT License (MIT)](LICENSE).