CMS  Version 3.9
HtmlEditorManifest Class Reference

Static Public Member Functions

static getComponentDefinition ()
 
static getScripts ()
 
static getStyles ()
 
static registerPlugins ()
 
static subscribeToEvents ()
 

Public Attributes

 $allow_sessionless_handlers = array("custom_css")
 

Detailed Description

Definition at line 7 of file manifest.inc.

Member Function Documentation

◆ getComponentDefinition()

static HtmlEditorManifest::getComponentDefinition ( )
static

Definition at line 9 of file manifest.inc.

10  {
11  $component = new Component();
12  $component->name = "html_editor";
13  $component->description = "Allows extensions and configuration for the HTML editor";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 2;
17  $component->enabled = true;
18 
19  return $component;
20  }
$component
Definition: help.inc:38

◆ getScripts()

static HtmlEditorManifest::getScripts ( )
static

Definition at line 22 of file manifest.inc.

23  {
24  return array("/components/html_editor/js/snippet_manager.js",
25  "/components/html_editor/js/snippet_tinymce_plugin.js",
26  "/components/html_editor/js/custom_css_manager.js",
27  "/components/html_editor/js/custom_css_tinymce_plugin.js",
28  "/components/html_editor/js/tag_editor.js",
29  "/components/html_editor/js/tag_editor_tinymce_plugin.js"
30  );
31  }

◆ getStyles()

static HtmlEditorManifest::getStyles ( )
static

Definition at line 33 of file manifest.inc.

34  {
35  return array("/components/html_editor/css/html_editor.css");
36  }

◆ registerPlugins()

static HtmlEditorManifest::registerPlugins ( )
static

Definition at line 38 of file manifest.inc.

39  {
40  HtmlEditorManager::registerPlugin("Insert Snippet", "snippet");
41  if (Settings::getValue("html_editor", "enable_custom_CSS") && checkRole("admin"))
42  {
43  HtmlEditorManager::registerPlugin("Edit Custom CSS", "custom_css");
44  }
45  HtmlEditorManager::registerPlugin("Edit HTML Tag", "tag_editor");
46  }
static registerPlugin($title, $plugin)
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104

◆ subscribeToEvents()

static HtmlEditorManifest::subscribeToEvents ( )
static

Definition at line 50 of file manifest.inc.

51  {
52  return array("upgradeComponent" => array(HtmlEditorManager, upgradeComponent),
53  "ComponentScanComplete" => array(HtmlEditorManager, setDefaults),
54  "Initialize" => array(HtmlEditorManager, onInitialize),
55  "RegisterSerializationHandler" => array(HtmlEditorManager, registerSerializationHandler),
56  "RegisterHTMLEditorPlugins" => array(HtmlEditorManifest, registerPlugins),
57  "PreProcessPage" => array(HtmlEditorManager, applyCustomCSS)
58  //TODO: Add Event Registrations here
59  );
60  }
Provides a central management class for event handlers and common functionality for the html_editor c...
static registerPlugins()
Definition: manifest.inc:38

Member Data Documentation

◆ $allow_sessionless_handlers

HtmlEditorManifest::$allow_sessionless_handlers = array("custom_css")

Definition at line 48 of file manifest.inc.


The documentation for this class was generated from the following file: