CMS  Version 3.9
LinkPickerManifest Class Reference

Static Public Member Functions

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

Detailed Description

Definition at line 34 of file manifest.inc.

Member Function Documentation

◆ getComponentDefinition()

static LinkPickerManifest::getComponentDefinition ( )
static

Definition at line 36 of file manifest.inc.

37  {
38  $component = new Component();
39  $component->name = "link_picker";
40  $component->description = "Link picker functionality for Fakoli/CMS RTE integration";
41  $component->author = "Andy Green";
42  $component->version = "1.0";
43  $component->priority = 5;
44  $component->enabled = true;
45 
46  return $component;
47  }
$component
Definition: help.inc:38

◆ getScripts()

static LinkPickerManifest::getScripts ( )
static

Definition at line 57 of file manifest.inc.

58  {
59  return array("/components/link_picker/js/link_picker.js",
60  "/components/link_picker/js/link_picker_tinymce_plugin.js");
61  }

◆ getStyles()

static LinkPickerManifest::getStyles ( )
static

Definition at line 63 of file manifest.inc.

64  {
65  return array("/components/link_picker/css/link_picker.css");
66  }

◆ onInitialize()

static LinkPickerManifest::onInitialize ( )
static

Definition at line 73 of file manifest.inc.

74  {
75  global $html_editor_extra_buttons;
76  global $html_editor_override_buttons;
77 
78  $html_editor_extra_buttons[] =
79  array("name" => "link_picker",
80  "image" => "/fakoli/richtext/images/document_link.gif",
81  "tooltip" => "Link to Page or Document",
82  "handler" => "linkPicker");
83 
84  $html_editor_override_buttons[] =
85  array("name" => "link",
86  "handler" => "linkPickerExternal");
87 
88  }

◆ registerPlugins()

static LinkPickerManifest::registerPlugins ( )
static

Definition at line 68 of file manifest.inc.

69  {
70  HtmlEditorManager::registerPlugin("Link Picker", "linkpicker");
71  }
static registerPlugin($title, $plugin)

◆ subscribeToEvents()

static LinkPickerManifest::subscribeToEvents ( )
static

Definition at line 49 of file manifest.inc.

50  {
51  return array("Initialize" => array(LinkPickerManifest, onInitialize),
52  "RegisterHTMLEditorPlugins" => array(LinkPickerManifest, registerPlugins)
53  );
54  }

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