Skip to content

The Trumbowyg WYSIWYG Editor widget for yii2 framework

License

Notifications You must be signed in to change notification settings

papajojo/yii2-trumbowyg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Trumbowyg WYSIWYG Editor widget for Yii 2

Wrapper for Trumbowyg WYSIWYG.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist artkost/yii2-trumbowyg "*"

or add

"artkost/yii2-trumbowyg": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code:

Use as widget

echo \artkost\trumbowyg\Trumbowyg::widget([
    'settings' => [
        'lang' => 'ru'
    ]
]);

Use as ActiveForm widget

use artkost\trumbowyg\Trumbowyg;

echo $form->field($model, 'content')->widget(Trumbowyg::className(), [
    'settings' => [
        'lang' => 'ru'
    ]
]);

About

The Trumbowyg WYSIWYG Editor widget for yii2 framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%