dev-master
9999999-devImperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)
BSD-3-Clause
The Requires
by Alexander Yaremchuk
by Veaceslav Medvedev
by dungphanxuan
yii imperavi imperavi redactor
Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)
Created for Tourista, (*1)
ImperaviRedactorWidget
is a wrapper for Imperavi Redactor,
a high quality WYSIWYG editor., (*2)
Note that Imperavi Redactor itself is a proprietary commercial copyrighted software but since Yii community bought OEM license you can use it for free with Yii., (*3)
Using model, (*4)
yii\imperavi\Widget::widget([ // You can either use it for model attribute 'model' => $my_model, 'attribute' => 'my_field', // or just for input field 'name' => 'my_input_name', // Some options, see http://imperavi.com/redactor/docs/ 'options' => [ 'toolbar' => false, 'css' => 'wym.css', ], ]);
Alternatively you can attach Redactor to already existing DOM element by calling:, (*5)
yii\imperavi\Widget::widget([ // Some options, see http://imperavi.com/redactor/docs/ 'options' => [], ]);
The redactor plugins plugged in with packages of resources., (*6)
yii\imperavi\Widget::widget([ 'options' => [ 'lang' => 'ru', ], 'plugins' => [ 'fullscreen', 'clips' ] ]);
The preferred way to install this extension is through composer., (*7)
Either run, (*8)
php composer.phar require asofter/yii2-imperavi-redactor "*"
or add, (*9)
"asofter/yii2-imperavi-redactor": "*"
to the require section of your composer.json
file., (*10)
Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)
BSD-3-Clause
yii imperavi imperavi redactor