sfTinyMCEConfigPlugin
The sfTinyMCEConfigPlugin is a Symfony plugin that provides the means to have a central configuration for TinyMCE.
Installation
- Install the Plugin
php symfony plugin-install http://plugins.symfony-project.com/sfTinyMCEConfigPlugin
- Add following configuration to your application myproject/apps/myapp/config/settings.yml
.settings:
rich_text_editor_class: TinyMCEExtended
Usage
Open the tiny_mce.yml file in plugins/sfTinyMCEConfigPlugin/config/ directory and add or edit the settings. The settings are the same as in the JavaScript configurations
culture: en_US ;if not specified the current user's culture will be used
options:
mode: exact
plugins:
- table
- advimage
- advlink
- flash
- fullscreen
- inlinepopups
- contextmenu
- directionality
theme: advanced
theme_settings:
theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_path_location: bottom
buttons:
theme_advanced_buttons1:
- justifyleft
- justifycenter
- justifyright
- justifyfull
- ltr
- rtl
- separator
- bold
- italic
- strikethrough
- separator
- sub
- sup
- separator
- charmap
theme_advanced_buttons2:
- bullist
- numlist
- separator
- outdent
- indent
- separator
- undo
- redo
- separator
- link
- unlink
- separator
- cleanup
- removeformat
- separator
- code
theme_advanced_buttons3:
- tablecontrols
- fullscreen
extended_valid_elements:
img:
- class
- src
- border=0
- alt
- title
- hspace
- vspace
- width
- height
- align
- onmouseover
- onmouseout
- name
relative_urls: false
debug: false
misc: ; section to specify misc settings, like for plugins etc.
plugin_simplebrowser_width: '800'
plugin_simplebrowser_height: '600'
plugin_simplebrowser_browselinkurl: '../simplebrowser/browser.html?Connector=connectors/php/connector.php'
plugin_simplebrowser_browseimageurl: '../simplebrowser/browser.html?Type=Image&Connector=connectors/php/connector.php'
plugin_simplebrowser_browseflashurl: '../simplebrowser/browser.html?Type=Flash&Connector=connectors/php/connector.php'
Discussion Forum
http://www.symfony-project.org/forum/index.php/t/11568/
Versions
- 0.0.3
-
- Added misc section in configuration for additional optional configuration.
- 0.0.2
-
- Added culture configuration. If not specified the current user's culture will be used
- 0.0.1
-
- First version uploaded
Attachments
- sfTinyMCEConfigPlugin-0.0.1.tgz (4.4 kB) - added by Mozzy on 02/07/08 12:16:31.
- sfTinyMCEConfigPlugin-0.0.2.tgz (4.4 kB) - added by Mozzy on 02/12/08 19:15:19.
- sfTinyMCEConfigPlugin-0.0.3.tgz (4.8 kB) - added by Mozzy on 04/03/08 15:42:12.