https://github.com/sdkiller/yii2-imperavi-redactor
Yii2 port of Imperavi Redactor Widget for Yii
https://github.com/sdkiller/yii2-imperavi-redactor
Last synced: 3 months ago
JSON representation
Yii2 port of Imperavi Redactor Widget for Yii
- Host: GitHub
- URL: https://github.com/sdkiller/yii2-imperavi-redactor
- Owner: SDKiller
- License: other
- Created: 2014-07-20T12:11:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-07T13:44:38.000Z (over 9 years ago)
- Last Synced: 2025-01-31T20:55:50.532Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 895 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Imperavi Redactor Widget for Yii2
=================================This is a Yii2 port of original [Imperavi Redactor Widget](https://github.com/yiiext/imperavi-redactor-widget) for Yii (yiiext/imperavi-redactor-widget).
`ImperaviRedactorWidget` is a wrapper for [Imperavi Redactor](http://imperavi.com/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.Installation
------------```
composer.phar require --prefer-dist zyx/yii2-imperavi-redactor "*"
```TBD
Usage
-----TBD
For more options see [Imperavi Redactor documentation](http://imperavi.com/redactor/docs/)
```
echo $form->field($model, 'content')->widget(
Redactor::className(), [
'options' => [
'style' => 'height: 300px;'
],
'clientOptions' => [
'lang' => 'ru',
'observeLinks' => true,
'convertVideoLinks' => true,
'autoresize' => true,
'placeholder' => Yii::t('app', 'Redactor placeholder text'),
'plugins' => ['table', 'video', 'fontcolor', 'fontfamily', 'fontsize'],
'buttons' => ['html', 'formatting', 'bold', 'italic', 'deleted', 'underline', 'horizontalrule',
'alignment', 'unorderedlist', 'orderedlist', 'outdent', 'indent',
, 'link', 'image', 'file'],
'imageUpload' => Yii::$app->urlManager->createUrl(['news/upload']),
],
]
);
```