Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-admin-extensions/simditor
Integrates simditor into Laravel-admin
https://github.com/laravel-admin-extensions/simditor
extension laravel-admin simditor
Last synced: 6 days ago
JSON representation
Integrates simditor into Laravel-admin
- Host: GitHub
- URL: https://github.com/laravel-admin-extensions/simditor
- Owner: laravel-admin-extensions
- License: mit
- Created: 2018-09-18T11:38:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T05:28:09.000Z (almost 4 years ago)
- Last Synced: 2024-03-14T14:21:02.312Z (8 months ago)
- Topics: extension, laravel-admin, simditor
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - simditor - Simditor 富文本编辑器 (扩展包 / 字段类扩展包)
README
# Simditor extension for laravel-admin
This is a `laravel-admin` extension that integrates [Simditor](https://github.com/mycolorway/simditor) into the `laravel-admin` form.
## Screenshot## Installation
```bash
composer require jxlwqq/simditorphp artisan vendor:publish --tag=laravel-admin-simditor
```## Configuration
In the `extensions` section of the `config/admin.php` file, add some configuration that belongs to this extension.
```php'extensions' => [
'simditor' => [
// Set to false if you want to disable this extension
'enable' => true,
// Editor configuration
'config' => [
'upload' => [
'url' => '/admin/api/upload', # example api route: admin/api/upload
'fileKey' => 'upload_file',
'connectionCount' => 3,
'leaveConfirm' => 'Uploading is in progress, are you sure to leave this page?'
],
'tabIndent' => true,
'toolbar' => ['title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale', 'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image', 'hr', '|', 'indent', 'outdent', 'alignment'],
'toolbarFloat' => true,
'toolbarFloatOffset' => 0,
'toolbarHidden' => false,
'pasteImage' => true,
'cleanPaste' => false,
]
]
]
```The configuration of the editor can be found in [Simditor Documentation](https://simditor.tower.im/docs/doc-usage.html).
## Usage
Use it in the form form:
```php
$form->simditor('content');
```## More resources
[Awesome Laravel-admin](https://github.com/jxlwqq/awesome-laravel-admin)
License
------------
Licensed under [The MIT License (MIT)](LICENSE).