Skip to content

mmedojevicbg/yii2-text-area-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Area Tokens - Yii2 extension

This is drop-in replacement for textarea form element. It provides tokens below form element. Text is automatically inserted into textarea by clicking one of tokens.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist mmedojevicbg/yii2-text-area-tokens "dev-master"

or add

"mmedojevicbg/yii2-text-area-tokens": "dev-master"

to the require section of your composer.json file.

Usage

echo TextAreaTokens::widget(['model' => $model,
                             'attribute' => 'textfield1',
                             'tokens' => ['first_name', 'last_name', 'phone_number'],
                             'options' => ['rows' => 8, 'cols' => 100]])

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published