![]() |
|
isicsWidgetFormTinyMCEPlugin - 1.0.6The missing TinyMCE widget for sfForm. |
|
![]() |
25
users
Sign-in
to change your status |
This plugin adds a fully customizable TinyMCE widget. |
You miss TinyMce since you've started using symfony 1.1? No matter, this widget is very easy to use and lets you a lot of flexibility.
| Name | Status | |
|---|---|---|
|
|
lead | rf.scisi <<ta>> tcatnoc |
Copyright (c) 2O08 ISICS.fr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 1.0.6stable | MIT | 1.0.6stable | 24/06/2011 |
| 1.0.5stable | MIT | 1.0.5stable | 28/06/2010 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.6stable | MIT | 1.0.6stable | 24/06/2011 |
| 1.0.5stable | MIT | 1.0.5stable | 28/06/2010 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.6stable | MIT | 1.0.6stable | 24/06/2011 |
| 1.0.5stable | MIT | 1.0.5stable | 28/06/2010 |
| 1.0.4stable | MIT | 1.0.4stable | 16/03/2009 |
| 1.0.2stable | MIT | 1.0.2stable | 08/10/2008 |
| 1.0.1stable | MIT | 1.0.1stable | 06/10/2008 |
| 1.0.0stable | MIT | 1.0.0stable | 06/10/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.6stable | MIT | 1.0.6stable | 24/06/2011 |
| 1.0.5stable | MIT | 1.0.5stable | 28/06/2010 |
| 1.0.4stable | MIT | 1.0.4stable | 16/03/2009 |
| 1.0.2stable | MIT | 1.0.2stable | 08/10/2008 |
| 1.0.1stable | MIT | 1.0.1stable | 06/10/2008 |
| 1.0.0stable | MIT | 1.0.0stable | 06/10/2008 |
path to TinyMCEpath to TinyMCEfixed wrong parameter name
Updated README
Initial public release
You miss TinyMce since you've started using symfony 1.1? No matter, this widget is very easy to use and lets you a lot of flexibility.
First, download the last version of TinyMCE here: http://tinymce.moxiecode.com/download.php and place tiny_mce folder in your web/js directory. If you're using the GZip version, download the PHP compressor too.
Install the plugin
$ symfony plugin:install isicsWidgetFormTinyMCEPlugin
Clear your cache:
$ symfony cache:clear
You can now use the new widget for building your form:
$this->setWidgets(array( 'my_rich_text' => new isicsWidgetFormTinyMCE(array('tiny_options' => array('theme' => 'advanced')) ));
As you can see, isicsWidgetFormTinyMCE add the option tiny_options wich is an array off the Tiny Options (look at the TinyMCE wiki for help).
If you're using the sames options many times, why don't use an app setting? Edit your app.yml and add a tiny_mce_default param:
tiny_mce:
default:
theme: advanced
Your can define your own params too:
tiny_mce:
my_settings:
theme: advanced
theme_advanced_buttons1: 'bold, italic'
And in your PHP code:
$this->setWidgets(array( new isicsWidgetFormTinyMCE(array( 'tiny_options' => sfConfig::get('app_tiny_mce_my_settings', array()) ) ));
You can specify another path to TinyMCE classes by changing value of path params in app.yml or tiny_path option in widget configuration.
The plugin protects all options by quotes. Some options doesn't have to be protected by quotes. By default, the setup option isn't protected.
If you need to unprotect others options, a options_without_quotes option is provided:
$this->setWidgets(array( 'my_rich_text' => new isicsWidgetFormTinyMCE(array('options_without_quotes' => array('my_option'))) ));
You can use the GZip compressor provided with tinyMCE:
$this->setWidgets(array( 'my_rich_text' => new isicsWidgetFormTinyMCE(array('with_gzip' => true)) ));
Edit your app.yml and add a tiny_mce_gz_default param:
tiny_mce:
gz_default:
plugins: 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras'
languages: 'en'
themes: 'simple,advanced'
A tiny_gz_options option is also provided with the same usage that tiny_options.
