PHP code example of mr4-lax / tiny-mce

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

    

mr4-lax / tiny-mce example snippets


'extensions' => [
    'mr4lax' => [
        // If the value is set to false, this extension will be disabled
        'enable' => true,
        'tinymce' => [
            'editor' => [
                'plugins' => 'table lists link image media wordcount',
                'toolbar' => 'undo redo | formatselect| bold italic underline strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | indent outdent | bullist numlist | code | table | image media link',
            ],
            'editor' => [
                'upload' => 'mr4.lax.tinymce.upload',
                'store' => 'public/mr4lax/tinymce',
            ],
        ],
    ],
],

$form->tinymce('content')
  ->rows(5)
  ->attribute([
      'menubar' => 'true',
      'statusbar' => 'true',
  ]);