Skip to content

The Trumbowyg WYSIWYG Editor widget for yii2 framework

License

Notifications You must be signed in to change notification settings

cybercog/yii2-trumbowyg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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\Widget::widget([
    'settings' => [
        'lang' => 'ru'
    ]
]);

Use as ActiveForm widget

use artkost\trumbowyg\Widget;

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

About

The Trumbowyg WYSIWYG Editor widget for yii2 framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • PHP 100.0%