artkost/yii2-trumbowyg

The Trumbowyg WYSIWYG Editor widget for yii2 framework

Installs: 16 030

Dependents: 1

Suggesters: 0

Security: 0

Stars: 25

Watchers: 3

Forks: 8

Open Issues: 2

Type:yii2-extension

2.18.0 2019-07-29 09:44 UTC

This package is auto-updated.

Last update: 2024-10-29 03:43:09 UTC


README

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 "@stable"

or add

"artkost/yii2-trumbowyg": "@stable"

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\yii2\trumbowyg\Trumbowyg::widget([
    'name' => 'myname',
    'settings' => [
        'lang' => 'ru'
    ]
]);

Use as ActiveForm widget

use artkost\yii2\trumbowyg\Trumbowyg;

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