mata / mata-imperavi-redactor
Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)
Installs: 2 273
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-11 13:44:04 UTC
README
Created for Tourista
ImperaviRedactorWidget
is a wrapper for Imperavi Redactor,
a high quality WYSIWYG editor.
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.
Using model
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:
yii\imperavi\Widget::widget([ // Some options, see http://imperavi.com/redactor/docs/ 'options' => [], ]);
The redactor plugins plugged in with packages of resources.
yii\imperavi\Widget::widget([ 'options' => [ 'lang' => 'ru', ], 'plugins' => [ 'fullscreen', 'clips' ] ]);
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require asofter/yii2-imperavi-redactor "*"
or add
"asofter/yii2-imperavi-redactor": "*"
to the require section of your composer.json
file.
Changelog
1.0.4.1, November 11, 2016
- Added default buttons in Widget (including 'underline')
1.0.4, August 21, 2015
- Added matacms plugins: imagematacms (used by default), linkmatacms (used by default), videomatacms, tablematacms
1.0.3, June 29, 2015
- Updated Widget.php: fixed registering assets for plugins
1.0.2, June 29, 2015
- Updated paths for asset bundles: TableImperaviRedactorPluginAsset, TextdirectionImperaviRedactorPluginAsset, TextexpanderImperaviRedactorPluginAsset, VideoImperaviRedactorPluginAsset
1.0.1, May 27, 2015
- Z-index for redactor modal updated