PHP code example of aiman / thaana-tinymce-field
1. Go to this page and download the library: Download aiman/thaana-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/ */
aiman / thaana-tinymce-field example snippets
php artisan vendor:publish --provider="Aiman\ThaanaTinymceField\FieldServiceProvider"
PHP
return [
/*
|--------------------------------------------------------------------------
| Default Options
|--------------------------------------------------------------------------
|
| Here you can define the options that are passed to all ThaanaTinymceField
| fields by default. Override these values from options method when using fields.
|
*/
'default_options' => [
'height' => 500,
'menubar'=> "",
'directionality'=> "ltr",
'image_caption'=> true,
'plugins' => [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount',
],
'toolbar' => 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | ullist numlist outdent indent | removeformat | help | image',
],
'api_key' => 'YOUR API KEY HERE',
'driver' => env('FILESYSTEM_DRIVER', 'public')
];