sfTinyMCEConfigPlugin - 0.0.3

Configures TinyMCE with yml

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

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 settings.yml

    .settings
      rich_text_editor_class: TinyMCEExtended
    

Usage

Just open the tiny_mce.yml file in the plugin's folder and add or edit it's 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