laravel-admin-ext / python-editor
laravel-admin 的 Python 编辑器扩展
v1.0.0
2018-09-11 17:20 UTC
Requires
- php: >=7.0.0
- jxlwqq/code-mirror: *
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-09-17 17:05:43 UTC
README
DEMO (使用 admin/admin
登录)
安装
composer require laravel-admin-ext/python-editor php artisan vendor:publish --tag=laravel-admin-code-mirror
配置
在 config/admin.php
文件的 extensions
部分添加此扩展的相关配置。
'extensions' => [ 'python-editor' => [ //Set to false if you want to disable this extension 'enable' => true, // Editor configuration 'config' => [ ] ] ]
编辑器的配置可以在 CodeMirror 文档 中找到
使用方法
以以下形式使用
$form->python('code');
设置高度
$form->python('code')->height(500); // Set python version,defaults t 3 $form->python('code')->version(2);
捐赠
通过捐赠一小笔资金来帮助项目开发继续进行。提前感谢。
许可
在 MIT 许可证 (MIT) 下授权。