diff --git a/README.md b/README.md index 5cfadf3..492b9f0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Python editor extension for laravel-admin based on code-mirror ====== +[DEMO](http://demo.laravel-admin.org/code-mirror/python) (Login using `admin/admin`) + ## Installation ```bash @@ -9,19 +11,19 @@ composer require laravel-admin-ext/python-editor php artisan vendor:publish --tag=laravel-admin-code-mirror ``` -## 配置 +## Configuration -在`config/admin.php`文件的`extensions`,加上属于这个扩展的一些配置 +In the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension. ```php 'extensions' => [ 'python-editor' => [ - // 如果要关掉这个扩展,设置为false + //Set to false if you want to disable this extension 'enable' => true, - // 编辑器的配置 + // Editor configuration 'config' => [ ] @@ -30,29 +32,31 @@ php artisan vendor:publish --tag=laravel-admin-code-mirror ``` -更多配置可以到[CodeMirror文档](https://codemirror.net/)找到 +The configuration of the editor can be found in [CodeMirror Documentation](https://codemirror.net/) -## 使用 +## Usage -在form表单中使用它: +Use it in the form: ```php $form->python('code'); ``` -设置高度 +Set height ```php $form->python('code')->height(500); -// 设置版本,默认为3 +// Set python version,defaults t 3 $form->python('code')->version(2); ``` -## 支持 +## 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). \ No newline at end of file +Licensed under [The MIT License (MIT)](LICENSE).