Skip to content

Leshkens/orchid-tinymce-field

Repository files navigation

Installation

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

About

Orchid TinyMCE field

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages