Class HtmlEditorConfig
A PHP version of TinyMCE's configuration, to allow various parameters to be configured on a site or section basis
There can be multiple HtmlEditorConfig's, which should always be created / accessed using HtmlEditorConfig::get. You can then set the currently active config using set_active. Whichever config is active when HtmlEditorField#Field is called wins.
Author: "Hamish Friedlander" <hamish@silverstripe.com>
Located at sapphire/forms/HtmlEditorConfig.php
Methods summary
public static
|
|
public static
null
|
|
public static
|
|
public static
array
|
#
get_available_configs_map( )
Get the available configurations as a map of friendly_name to configuration name. |
public
mixed
|
|
public
mixed
|
|
public
null
|
|
public
mixed
|
|
public
null
|
#
enablePlugins( )
Enable one or several plugins. Will maintain unique list if already enabled plugin is re-passed. If passed in as a map of plugin-name to path, the plugin will be loaded by tinymce.PluginManager.load() instead of through tinyMCE.init(). Keep in mind that these externals plugins require a dash-prefix in their name. |
public
null
|
#
disablePlugins( )
Enable one or several plugins. Will properly handle being passed a plugin that is already disabled |
public
Array
|
|
public
null
|
|
public
null
|
|
protected
boolean
|
#
modifyButtons( mixed $name, mixed $offset, mixed $del = 0, mixed $add = null )
Internal function for adding and removing buttons related to another button |
public
boolean
|
|
public
boolean
|
|
public
null
|
|
public
string
|
#
generateJS( )
Generate the javascript that will set tinyMCE's configuration to that of the current settings of this object |
Magic methods summary
Properties summary
public static
array
|
$configs | |
public static
mixed
|
$current | |
protected
array
|
$settings |
#
Holder for all TinyMCE settings _except_ plugins and buttons |
protected
array
|
$plugins |
#
Holder list of enabled plugins |
protected
array
|
$buttons |
#
Holder list of buttons, organised by line |