TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu:
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi

Public Member Functions

 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
- Public Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
 getExtensionKey ()
 
 addsButtons ()
 
 getPluginButtons ()
 
 getPluginLabels ()
 
 getConvertToolbarForHtmlAreaArray ()
 
 requiresClassesConfiguration ()
 
 getRequiredPlugins ()
 
 setToolbar (array $toolbar)
 

Protected Member Functions

 buildNestedJSArray ($conf)
 
- Protected Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 cleanList ($str)
 
 getPageConfigLabel ($string)
 
 isFrontend ()
 
 isFrontendEditActive ()
 
 getFullFileName ($filename)
 
 writeTemporaryFile ($label, $fileExtension='js', $contents='')
 
 getLanguageService ()
 

Protected Attributes

 $pluginName = 'ContextMenu'
 
- Protected Attributes inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 $extensionKey = 'rtehtmlarea'
 
 $pluginName
 
 $relativePathToSkin = ''
 
 $toolbar
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = true
 
 $convertToolbarForHtmlAreaArray = []
 
 $requiresClassesConfiguration = false
 
 $requiredPlugins = ''
 
 $configuration
 

Detailed Description

Context Menu plugin for htmlArea RTE

Definition at line 23 of file ContextMenu.php.

Member Function Documentation

◆ buildJavascriptConfiguration()

TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu::buildJavascriptConfiguration ( )

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins

Definition at line 49 of file ContextMenu.php.

References TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu\buildNestedJSArray(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\cleanList(), TYPO3\CMS\Core\Utility\GeneralUtility\strtolower(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ buildNestedJSArray()

TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu::buildNestedJSArray (   $conf)
protected

Translate Page TS Config array in JS nested array definition Replace 0 values with false Unquote regular expression values Replace empty arrays with empty objects

Parameters
array$conf,Page TSConfig configuration array
Returns
string nested JS array definition

Definition at line 73 of file ContextMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\removeDotsFromTS().

Referenced by TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu\buildJavascriptConfiguration().

◆ main()

TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu::main ( array  $configuration)

Returns TRUE if the plugin is available and correctly initialized

Parameters
array$configurationConfiguration array given from calling object down to the single plugins
Returns
bool TRUE if this plugin object should be made available in the current environment and is correctly initialized

Definition at line 38 of file ContextMenu.php.

Member Data Documentation

◆ $pluginName

TYPO3\CMS\Rtehtmlarea\Extension\ContextMenu::$pluginName = 'ContextMenu'
protected

Definition at line 30 of file ContextMenu.php.