mr4-lax / tiny-mce
Laravel admin form TinyMCE
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
README
This is a laravel-admin
extension that integrates TinyMCE 6 into the laravel-admin
form.
Screenshot
Installation
composer require mr4-lax/tiny-mce php artisan vendor:publish --tag=mr4-lax-tinymce --force
Configuration
In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.
'extensions' => [ 'mr4lax' => [ // If the value is set to false, this extension will be disabled 'enable' => true, 'tinymce' => [ 'editor' => [ 'plugins' => 'table lists link image media wordcount', 'toolbar' => 'undo redo | formatselect| bold italic underline strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | indent outdent | bullist numlist | code | table | image media link', ], 'editor' => [ 'upload' => 'mr4.lax.tinymce.upload', 'store' => 'public/mr4lax/tinymce', ], ], ], ],
The configuration of plugins and toolbar of the editor can be found in TinyMCE Document
Usage
Use it in the form:
$form->tinymce('content') ->rows(5) ->attribute([ 'menubar' => 'true', 'statusbar' => 'true', ]);
License
Licensed under The MIT License (MIT).