PHP code example of backpack / tinymce-field

1. Go to this page and download the library: Download backpack/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/ */

    

backpack / tinymce-field example snippets


CRUD::field([   // TinyMCE
    'name'  => 'description',
    'label' => 'Description',
    'type'  => 'tinymce',
    // optional overwrite of the configuration array
    // 'options' => [
        //'selector' => 'textarea.tinymce',
        //'skin' => 'dick-light',
        //'plugins' => 'image link media anchor'
    // ],
]);

'options' => ['toolbar' => 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent'],