yii2-wysibb
Implements WysiBB visual editor http://www.wysibb.com/ to your Yii2 application.
More about WysiBB read at http://www.wysibb.com/, (*1)
Install via composer
Run in your console:, (*2)
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:, (*3)
/* @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, (*4)