41 $mgr->upgrade($version);
46 Settings::setDefaultValue(
"html_editor",
"CSS_files",
"", Text,
"List of CSS files to apply within the editor. Put each CSS file on a separate line.",
"Appearance");
47 Settings::setDefaultValue(
"html_editor",
"body_class",
"", String,
"Body class to be applied to content within the editor - use this to override inappropriate styles",
"Appearance");
50 Settings::setDefaultValue(
"html_editor",
"custom_CSS",
"", Text,
"This setting can be used to provide custom CSS styles, configurable from the HTML editor. A link tag to /action/html_editor/custom_styles must be added to your site's template files.",
"Custom CSS",
null, 2);
61 global $tiny_mce_application_plugins;
62 global $tiny_mce_application_toolbar_section;
63 global $tiny_mce_application_context_menu_section;
64 global $tiny_mce_content_css;
65 global $tiny_mce_body_class;
78 HTMLFieldRenderer::$actionFilter =
'HTMLEditorManager::handleActionFilters';
84 foreach(HTMLEditorManager::$actionFilters as
$filter)
95 $template = str_replace(
"</head>",
" <link href='/action/html_editor/custom_css' rel='stylesheet'/>\n</head>", $template);
103 if (preg_match_all(
"/{([^}]+)}/",
$snippet->snippet, $matches, PREG_PATTERN_ORDER))
105 $fields = array_unique($matches[1]);
109 <table
class=
'form' id=
'snippet_parameters'>
112 foreach($fields as
$field)
115 <tr><td
class=
'label'><label><?echo
$field?></label></td>
116 <td
class=
'value'><input type=
'text' name=
'<?echo $field?>' class=
'snippet_parameter' id=
'snippet_parameter_{$i}' value=
'' size=
'75'/></td></tr>
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
Provides a central management class for event handlers and common functionality for the html_editor c...
static applyCustomCSS($template)
static formatSnippetParameters($snippet)
static $additionalPlugins
static registerSerializationHandler()
static registerActionFilter($filter)
static registerPlugin($title, $plugin)
static upgradeComponent($version)
static handleActionFilters($context)
static registerAdditionalPlugin($title, $plugin)
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
static getValue($component, $name)
Retrieve the value of the specified Setting.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
Provides a simple implementation of a SerializationHandler that can serialize a single DataItem class...