leshkens / orchid-tinymce-field
Orchid TinyMCE field
Installs: 245
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 1
Language:JavaScript
Requires
- php: >=7.3
- orchid/platform: ^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-12-24 21:01:01 UTC
README
Install via composer:
composer require leshkens/orchid-tinymce-field
Usage
It easy. Add to you row layout class:
use Leshkens\OrchidTinyMCEField\TinyMCE; TinyMCE::make('tinymce');
Available methods:
TinyMCE::make('tinymce') ->config([ // TinyMCE config 'language_url' => asset('/js/tinymce/langs/ru.js'), ... ]) ->uploadEndpoint('') // You image upload custom endpoint ->uploadStorage('') // Upload storage ->uploadGroup('') // Upload group ->uploadMaxFileSize(1000) // in kb ->uploadMaxFileErrorMessage('Слишком большой размер файла'); // Custom error message