amirandev / openadmin-tinymce
Integrate TinyMCE editor into Open-Admin
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.0.0
- laravel/framework: >=7.0
- open-admin-org/open-admin: ~1.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
<<<<<<< HEAD Perfect! Since you’re now using TinyMCE, here’s a fully polished README.md tailored specifically for your TinyMCE Open-Admin package. You can copy-paste it directly:
Integrate TinyMCE into Open-Admin
This is an Open-Admin extension that integrates the TinyMCE WYSIWYG editor into the Open-Admin form system.
Screenshot
Example TinyMCE field in an Open-Admin form
Installation
Install the package via Composer:
composer require amirandev/openadmin-tinymce
Publish the package assets (JS/CSS) so they are accessible by your application:
php artisan vendor:publish --tag=open-admin-tinymce
Configuration
In your config/admin.php
file, add the tinymce
extension under the extensions
section:
'extensions' => [ 'tinymce' => [ // Set to false to disable this extension 'enable' => true, // Editor configuration options 'config' => [ // See TinyMCE docs for available options ], ], ],
Example configuration:
'config' => [ 'height' => 500, 'menubar' => false, 'plugins' => 'link image code table lists', 'toolbar' => 'undo redo | styleselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright | bullist numlist | table | link image media | code', ]
For more configuration options, see the official TinyMCE Documentation.
Usage
Use the TinyMCE editor in your Open-Admin form like this:
$form->tinymce('content');
Or with custom options:
$form->tinymce('content')->options([ 'height' => 400, 'menubar' => true, 'plugins' => 'link image code table lists', 'toolbar' => 'undo redo | bold italic | alignleft aligncenter alignright | bullist numlist | code', ]);
Troubleshooting
If TinyMCE does not load or you see errors about missing files, try clearing your application cache:
php artisan optimize:clear
License
This package is licensed under the MIT License.
If you want, I can also add a short “Media Manager Integration” section showing how to use your custom file/image buttons inside TinyMCE, so your README fully documents all features.
Do you want me to add that?
openadmin-tinymce
c85364e96523b59ecbbfedb4e45599ba349a91a5