Skip to content

Androphin/yii2-trumbowyg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trumbowyg extension for Yii 2

Install

Either run

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

or add

"androphin/yii2-trumbowyg": "*"

to the require section of your composer.json file.

Basic usage:

use androphin\yii2\extensions\trumbowyg\TrumbowygWidget;

echo $form->field($model, 'content')->widget(TrumbowygWidget::class);

Advanced usage

use androphin\yii2\extensions\trumbowyg\TrumbowygWidget;

echo $form->field($model, 'content')->widget(TrumbowygWidget::className(), [
    'clientOptions' => [
        'btns' => [
            ['viewHTML'],
            ['undo', 'redo'],
            ['table'],
            ['formatting'],
            ['strong', 'em', 'del'],
            ['link'],
            ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
            ['unorderedList', 'orderedList'],
            ['removeformat'],
            ['fullscreen'],
            ['upload'],
        ]
    ],
    'plugins' => [
        TrumbowygWidget::PLUGIN_UPLOAD,
        TrumbowygWidget::PLUGIN_TABLE,
        TrumbowygWidget::PLUGIN_HISTORY
    ]
]);

About

Trumbowyg extension for YiiFramework 2.x.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%