https://github.com/webplusmultimedia/la-tiny-editor
Tiny MCE Editor for Little Admin
https://github.com/webplusmultimedia/la-tiny-editor
Last synced: 2 months ago
JSON representation
Tiny MCE Editor for Little Admin
- Host: GitHub
- URL: https://github.com/webplusmultimedia/la-tiny-editor
- Owner: webplusmultimedia
- License: mit
- Created: 2023-06-15T13:47:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T17:38:19.000Z (over 2 years ago)
- Last Synced: 2026-01-31T14:44:01.946Z (4 months ago)
- Language: Blade
- Size: 2.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tiny MCE Editor 6.4.2 for Little Admin
[](https://packagist.org/packages/webplusmultimedia/la-tiny-editor)
[](https://github.com/webplusmultimedia/la-tiny-editor/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/webplusmultimedia/la-tiny-editor/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/webplusmultimedia/la-tiny-editor)
TinyMce plugin for Little Admin.
[](https://postimg.cc/dkB1G7Zr)
## Support us
Coming soon
## Installation
You can install the package via composer:
```bash
composer require webplusmultimedia/la-tiny-editor
```
Publish the assets:
```bash
php artisan vendor:publish --tag=la-tiny-editor-assets
```
Publish the config file with:
```bash
php artisan vendor:publish --tag="la-tiny-editor-config"
```
Then, add some profile to use with tinyMce:
```php
return [
'profiles' => [
...
'myconf' => [
'plugins' => 'autolink link code',
'toolbar' => 'undo redo | bold italic underline | link | removeformat code brbtn',
],
...
]
];
```
## Usage
In the resource file of little Admin
```php
public static function getFormSchema(Form $form): Form
{
return $form
->schema([
LaTinyEditor::make('extrait')
->nullable()
->profile('myconf')
->required(),
LaTinyEditor::make('texte')
->nullable()
->helperText('Texte d\'apprentissage')->required(),
]);
}
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Webplusm](https://github.com/webplusmultimedia)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.