Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinceg/yii-aloha-editor-widget
Yii Widget for the Aloha Editor
https://github.com/vinceg/yii-aloha-editor-widget
Last synced: about 1 month ago
JSON representation
Yii Widget for the Aloha Editor
- Host: GitHub
- URL: https://github.com/vinceg/yii-aloha-editor-widget
- Owner: VinceG
- Created: 2012-06-16T19:03:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-01T22:00:19.000Z (over 12 years ago)
- Last Synced: 2024-04-15T00:06:30.511Z (8 months ago)
- Language: JavaScript
- Size: 6.76 MB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii-Aloha-Editor-Widget
==========================Yii Widget for the Aloha Editor
- [Project Page](http://aloha-editor.org/)
- [Examples](http://aloha-editor.org/demos.php)
- [Documentation](http://aloha-editor.org/builds/development/latest/doc/guides/output/using_aloha.html)
- [Yii Widget On Github](https://github.com/VinceG/Yii-Aloha-Editor-Widget)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.alohaeditor.AlohaEditor', array( 'model' => $model, 'attribute' => 'some_attribute', 'showTextarea' => true ));
~~~- By default 'showTextarea' is set to false
Using selector to set multiple elements editable
------------------~~~
$this->widget('application.widgets.alohaeditor.AlohaEditor', array( 'selector' => '.editable' ));
~~~Using with a model and a basic toolbar
------------------~~~
$this->widget('application.widgets.alohaeditor.AlohaEditor', array('toolbar' => 'basic', 'model' => $model, 'attribute' => 'some_attribute' ));
~~~- There are two toolbars supported right now: basic and advanced
- At any point you can add more plugins to the toolbar by assigned array elements to the plugins property in the widgetUsing with a model and a basic toolbar and custom plugins
------------------~~~
$this->widget('application.widgets.alohaeditor.AlohaEditor', array('toolbar' => 'basic', 'plugins' => array('extra/hints'), 'model' => $model, 'attribute' => 'some_attribute' ));
~~~Using with a model and a basic toolbar and custom editor settings
------------------~~~
$this->widget('application.widgets.alohaeditor.AlohaEditor', array('alohaSettings' => array('lang' => 'fr'), 'model' => $model, 'attribute' => 'some_attribute' ));
~~~- Supported languages currently: de, en, fr, lv, pl, pt_br, ru, ua
- Refer to the documentation for a list of supported params for the settings arrayUsing with a name and value
------------------~~~
$this->widget('application.widgets.alohaeditor.AlohaEditor', array( 'name' => 'some name', 'value' => 'some value' ));
~~~Authors
==================Vincent Gabriel