PHP code example of liberosoft / luyawysiwyg

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

    

liberosoft / luyawysiwyg example snippets


return [
    'modules' => [
        // ...
        'wysiwygfrontend' => [
            'class' => 'liberosoft\luyawysiwyg\frontend\Module',
            'useAppViewPath' => false,
        ],
        'wysiwygadmin' => [
            'class' => 'liberosoft\luyawysiwyg\admin\Module',
            'useAppViewPath' => false,
            'textEditorOptions' => [ // tinymce options
                'height' => '480',
                'plugins' => 'link image code lists textcolor',
                'toolbar' => 'undo redo | bold underline italic forecolor backcolor | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | code'
            ]
        ],
        // ...
    ],
];