masterzero/yii2-activefield

There is no license information available for the latest version (v1.0.0) of this package.

Cumstom Yii class ActiveField to work with tinymce, elfinder, and auto translit.

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

v1.0.0 2017-01-17 07:54 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:24:18 UTC


README

Cumstom Yii class ActiveField to work with tinymce, elfinder, and auto translit.

Installation

Before install you need have composer.

Make sure you've correctly installed the elfinder by zxbodya.

Either run

$ composer require --prefer-dist masterzero/yii2-activefield

or add

"masterzero/yii2-activefield": "*"

to the require section of your composer.json file.

Usage

<?

use masterzero\activefield\ActiveForm;


$form = ActiveForm::begin([
    /* ... */
    'elFinderConnector' => '/el-finder/connector',
    /* ... */
	]);

?>


<?= $form->field($model, 'name')->copyName() ?>
<?= $form->field($model, 'url')->PasteToUrl() ?>
<?= $form->field($model, 'image')->elFinder() ?>
<?= $form->field($model, 'content')->tinyMCE() ?>

<? ActiveForm::end() ?>