kalyabin / yii2-wysibb
Implements WysiBB to your Yii2 application
Installs: 442
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 1
Type:package
Requires
- php: >=5.4.0
- bower-asset/jqjquery-wysibb: *
- yiisoft/yii2: 2.*
Requires (Dev)
- bower-asset/jqjquery-wysibb: *
This package is auto-updated.
Last update: 2024-12-29 05:43:54 UTC
README
Implements WysiBB visual editor http://www.wysibb.com/ to your Yii2 application. More about WysiBB read at http://www.wysibb.com/
Install via composer
Run in your console:
php composer.phar global require "fxp/composer-asset-plugin:1.0.0" php composer.phar require "kalyabin/yii2-wysibb" "dev-master"
Basic usage
/* @var $this \yii\web\View */ /* @var $model \yii\base\Model */ $form = \yii\widgets\ActiveForm::begin(); print $form->field($model, 'content')->widget(\kalyabin\wysibb\WysiBBWidget::className(), [ ... ]); \yii\widgets\ActiveForm::end();
Language support
By default widget uses application language, but you may use other languages:
/* @var $this \yii\web\View */ /* @var $model \yii\base\Model */ $form = \yii\widgets\ActiveForm::begin(); print $form->field($model, 'content')->widget(\kalyabin\wysibb\WysiBBWidget::className(), [ 'language' => 'fr', ... ]); \yii\widgets\ActiveForm::end();
More about language support see: https://github.com/wbb/WysiBB#language