Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
TinyMCEPlugin Class Reference
Inheritance diagram for TinyMCEPlugin:
GenericPlugin

Public Member Functions

 callback ($hookName, $args)
 
 getContextSpecificPluginSettingsFile ()
 
 getDescription ()
 
 getDisplayName ()
 
 getEnableFields (&$templateMgr, $page, $op)
 
 getInstallSitePluginSettingsFile ()
 
 getManagementVerbs ()
 
 isMCEInstalled ()
 
 register ($category, $path)
 
- Public Member Functions inherited from GenericPlugin
 GenericPlugin ()
 
 getManagementVerbs ($verbs=array())
 
 manage ($verb, $args, &$message, &$messageParams)
 
- Public Member Functions inherited from LazyLoadPlugin
 getEnabled ()
 
 getName ()
 
 LazyLoadPlugin ()
 
 register ($category, $path)
 
 setEnabled ($enabled)
 
- Public Member Functions inherited from Plugin
 getContextSpecificPluginSettingsFile ()
 
 getNewJournalPluginSettingsFile ()
 
 getSetting ($journalId, $name)
 
 Plugin ()
 
 updateSetting ($journalId, $name, $value, $type=null)
 
- Public Member Functions inherited from PKPPlugin
 _getContextSpecificInstallationHook ()
 
 addHelpData ($locale=null)
 
 addLocaleData ($locale=null)
 
 getCategory ()
 
 getContextSpecificPluginSettingsFile ()
 
 getContextSpecificSetting ($context, $name)
 
 getCurrentVersion ()
 
 getDescription ()
 
 getDisplayName ()
 
 getHelpMappingFilename ()
 
 getHideManagement ()
 
 getInstallDataFile ()
 
 getInstallEmailTemplateDataFile ()
 
 getInstallEmailTemplatesFile ()
 
 getInstallFilterConfigFiles ()
 
 getInstallSchemaFile ()
 
 getInstallSitePluginSettingsFile ()
 
 getLocaleFilename ($locale)
 
 getManagementVerbs ()
 
 getName ()
 
 getPluginPath ()
 
 getSeq ()
 
 getSettingMainContext ()
 
 getTemplatePath ()
 
 import ($class)
 
 installContextSpecificSettings ($hookName, $args)
 
 installData ($hookName, $args)
 
 installEmailTemplateData ($hookName, $args)
 
 installEmailTemplates ($hookName, $args)
 
 installFilters ($hookName, $args)
 
 installLocale ($hookName, $args)
 
 installSiteSettings ($hookName, $args)
 
 isSitePlugin ()
 
 manage ($verb, $args, &$message, &$messageParams, $request=null)
 
 PKPPlugin ()
 
 register ($category, $path)
 
 smartyPluginUrl ($params, &$smarty)
 
 updateContextSpecificSetting ($context, $name, $value, $type=null)
 
 updateSchema ($hookName, $args)
 

Detailed Description

TinyMCE WYSIWYG plugin for textareas - to allow cross-browser HTML editing.

Definition at line 23 of file TinyMCEPlugin.inc.php.

Member Function Documentation

TinyMCEPlugin::callback (   $hookName,
  $args 
)

Hook callback function for TemplateManager::display

Parameters
$hookNamestring
$argsarray
Returns
boolean

Definition at line 340 of file TinyMCEPlugin.inc.php.

References Registry\get(), PKPLocale\getAllLocales(), getEnableFields(), AppLocale\getLocale(), PKPRequest\getRequestedOp(), PKPRequest\getRequestedPage(), and String\substr().

TinyMCEPlugin::getContextSpecificPluginSettingsFile ( )

Get the name of the settings file to be installed on new journal creation.

Returns
string

Definition at line 46 of file TinyMCEPlugin.inc.php.

References PKPPlugin\getPluginPath().

TinyMCEPlugin::getDescription ( )

Get the description of this plugin

Returns
string

Definition at line 407 of file TinyMCEPlugin.inc.php.

References isMCEInstalled().

TinyMCEPlugin::getDisplayName ( )

Get the display name of this plugin

Returns
string

Definition at line 399 of file TinyMCEPlugin.inc.php.

TinyMCEPlugin::getEnableFields ( $templateMgr,
  $page,
  $op 
)

Given a $page and $op, return a list of field names for which the plugin should be used.

Parameters
$templateMgrobject
$pagestring The requested page
$opstring The requested operation
Returns
array

Definition at line 67 of file TinyMCEPlugin.inc.php.

References HookRegistry\call(), and PKPRequest\getRequestedArgs().

Referenced by callback().

TinyMCEPlugin::getInstallSitePluginSettingsFile ( )

Get the name of the settings file to be installed site-wide when OJS is installed.

Returns
string

Definition at line 55 of file TinyMCEPlugin.inc.php.

References PKPPlugin\getPluginPath().

TinyMCEPlugin::getManagementVerbs ( )

Get a list of available management verbs for this plugin

Returns
array

Definition at line 424 of file TinyMCEPlugin.inc.php.

References isMCEInstalled().

TinyMCEPlugin::isMCEInstalled ( )

Check whether or not the TinyMCE library is installed

Returns
boolean

Definition at line 416 of file TinyMCEPlugin.inc.php.

Referenced by getDescription(), getManagementVerbs(), and register().

TinyMCEPlugin::register (   $category,
  $path 
)

Register the plugin, if enabled; note that this plugin runs under both Journal and Site contexts.

Parameters
$categorystring
$pathstring
Returns
boolean

Definition at line 31 of file TinyMCEPlugin.inc.php.

References isMCEInstalled(), and HookRegistry\register().


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