org.olat.core.gui.components.form.flexible.impl.elements.richText.plugins
Class TinyMCECustomPluginFactory

java.lang.Object
  extended by org.olat.core.gui.components.form.flexible.impl.elements.richText.plugins.TinyMCECustomPluginFactory

public class TinyMCECustomPluginFactory
extends java.lang.Object

Description:
The plugins factory can be configured via spring to add your custom TinyMCE plugins to the HTML editor and the rich text formatted form element. It offers methods to get all plugins that are enabled for a specific usage profile.

Initial Date: 11.06.2009

Author:
gnaegi

Constructor Summary
TinyMCECustomPluginFactory()
           
 
Method Summary
 void addCustomPlugin(TinyMCECustomPlugin customPlugin)
          Method to programatically add a plugin.
 java.util.List<TinyMCECustomPlugin> getCustomPlugins()
          Get all custom TinyMCE plugins
 java.util.List<TinyMCECustomPlugin> getCustomPlugionsForProfile(int profile)
          Get all custom TinyMCE plugins that are enabled for the given profile
 void setCustomPlugins(java.util.List<TinyMCECustomPlugin> customPluginsFromConfiguration)
          Sping setter method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyMCECustomPluginFactory

public TinyMCECustomPluginFactory()
Method Detail

setCustomPlugins

public void setCustomPlugins(java.util.List<TinyMCECustomPlugin> customPluginsFromConfiguration)
Sping setter method

Parameters:
customPluginsFromConfiguration -

addCustomPlugin

public void addCustomPlugin(TinyMCECustomPlugin customPlugin)
Method to programatically add a plugin. Alterativ to the spring config way

Parameters:
customPlugin -

getCustomPlugins

public java.util.List<TinyMCECustomPlugin> getCustomPlugins()
Get all custom TinyMCE plugins

Returns:
List containing the plugins or an empty set.

getCustomPlugionsForProfile

public java.util.List<TinyMCECustomPlugin> getCustomPlugionsForProfile(int profile)
Get all custom TinyMCE plugins that are enabled for the given profile

Parameters:
profile - Profile defined in the RichtTextConfiguration.CONFIG_PROFILE_* variables
Returns:
List containing the plugins or an empty set.