PHP code example of leshkens / orchid-tinymce-field

1. Go to this page and download the library: Download leshkens/orchid-tinymce-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

leshkens / orchid-tinymce-field example snippets


use Leshkens\OrchidTinyMCEField\TinyMCE;

TinyMCE::make('tinymce');

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