Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinceg/yii-redactorjs-widget
Yii Widget for the WYSIWYG RedactorJS editor
https://github.com/vinceg/yii-redactorjs-widget
Last synced: 2 months ago
JSON representation
Yii Widget for the WYSIWYG RedactorJS editor
- Host: GitHub
- URL: https://github.com/vinceg/yii-redactorjs-widget
- Owner: VinceG
- Created: 2012-05-27T18:40:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-14T01:57:58.000Z (almost 12 years ago)
- Last Synced: 2024-04-15T00:06:31.473Z (9 months ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 14
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii-RedactorJS-Widget
=====================Yii Widget for the WYSIWYG RedactorJS editor
- [Project Page](http://redactorjs.com/)
- [Examples](http://redactorjs.com/examples/)
- [Documentation](http://redactorjs.com/docs/)Requirements
=====================- JQuery > 1.7.1
- Browser:
- Firefox 3+
- Safari 4+
- Chrome 4+
- Opera 10+
- IE 7+Installation
=====================1. Download or Clone the files
2. Extract into the widgets folder or extensions folderUsage
===================Using with a model
------------------~~~
$this->widget('application.widgets.redactorjs.Redactor', array( 'model' => $model, 'attribute' => 'some_attribute' ));
~~~Using with a model and a mini toolbar and different language
------------------~~~
$this->widget('application.widgets.redactorjs.Redactor', array( 'lang' => 'de', 'toolbar' => 'mini', 'model' => $model, 'attribute' => 'some_attribute' ));
~~~- There are two toolbars supported right now: default & mini. By default the widget will load the 'default' toolbar.
- Supported languages currently: de, en, fr, lv, pl, pt_br, ru, uaUsing with a model and custom toolbar options
------------------~~~
$this->widget('application.widgets.redactorjs.Redactor', array( 'editorOptions' => array('autoresize' => true, 'fixed' => true), 'model' => $model, 'attribute' => 'some_attribute' ));
~~~- Referrer to the redactorjs API for the list of supported elements. [View Docs](http://redactorjs.com/docs/settings/)
Using with a name and value
------------------~~~
$this->widget('application.widgets.redactorjs.Redactor', array( 'name' => 'some name', 'value' => 'some value' ));
~~~Authors
==================Vincent Gabriel