![]() |
TYPO3
7.6
|
Public Member Functions | |
main (array $configuration) | |
buildJavascriptConfiguration () | |
getExtensionKey () | |
addsButtons () | |
getPluginButtons () | |
getPluginLabels () | |
getConvertToolbarForHtmlAreaArray () | |
requiresClassesConfiguration () | |
getRequiredPlugins () | |
setToolbar (array $toolbar) | |
Protected Member Functions | |
cleanList ($str) | |
getPageConfigLabel ($string) | |
isFrontend () | |
isFrontendEditActive () | |
getFullFileName ($filename) | |
writeTemporaryFile ($label, $fileExtension= 'js', $contents= '') | |
getLanguageService () | |
Protected Attributes | |
$extensionKey = 'rtehtmlarea' | |
$pluginName | |
$relativePathToSkin = '' | |
$toolbar | |
$pluginButtons = '' | |
$pluginLabels = '' | |
$pluginAddsButtons = true | |
$convertToolbarForHtmlAreaArray = array() | |
$requiresClassesConfiguration = false | |
$requiredPlugins = '' | |
$configuration | |
API for extending htmlArea RTE
Definition at line 25 of file RteHtmlAreaApi.php.
addsButtons | ( | ) |
Returns a boolean indicating whether the plugin adds buttons or not to the toolbar
Definition at line 156 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$pluginAddsButtons.
buildJavascriptConfiguration | ( | ) |
Return JS configuration of the htmlArea plugins registered by the extension
Definition at line 127 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$pluginButtons, and GeneralUtility\trimExplode().
|
protected |
Clean list
string | $str |
Definition at line 227 of file RteHtmlAreaApi.php.
References GeneralUtility\trimExplode().
Referenced by ContextMenu\buildJavascriptConfiguration(), Typo3Color\buildJavascriptConfiguration(), BlockElements\buildJavascriptConfiguration(), InlineElements\buildJavascriptConfiguration(), and SelectFont\buildJSFontItemsConfig().
getConvertToolbarForHtmlAreaArray | ( | ) |
Returns the conversion array from TYPO3 button names to htmlArea button names
Definition at line 186 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$convertToolbarForHtmlAreaArray.
getExtensionKey | ( | ) |
Returns the extension key
Definition at line 146 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$extensionKey.
|
protected |
Make a file name relative to the PATH_site or to the PATH_typo3
string | $filename,: | a file name of the form EXT:.... or relative to the PATH_site |
Definition at line 281 of file RteHtmlAreaApi.php.
References $filename, ExtensionManagementUtility\extRelPath(), RteHtmlAreaApi\isFrontend(), RteHtmlAreaApi\isFrontendEditActive(), ExtensionManagementUtility\isLoaded(), GeneralUtility\resolveBackPath(), and ExtensionManagementUtility\siteRelPath().
Referenced by MicroDataSchema\buildJavascriptConfiguration(), and Typo3Link\buildJSClassesAnchorArray().
|
protected |
Get language service, instantiate if not there, yet
Definition at line 336 of file RteHtmlAreaApi.php.
References $GLOBALS.
Referenced by MicroDataSchema\buildJavascriptConfiguration(), Language\buildJavascriptConfiguration(), BlockElements\buildJavascriptConfiguration(), InlineElements\buildJavascriptConfiguration(), Typo3Link\buildJSClassesAnchorArray(), SelectFont\buildJSFontItemsConfig(), and RteHtmlAreaApi\getPageConfigLabel().
|
protected |
Resolve a label and do some funny quoting.
string | $string | Given label name |
Definition at line 243 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\getLanguageService().
Referenced by Typo3Color\buildJavascriptConfiguration(), BlockElements\buildJavascriptConfiguration(), and SelectFont\buildJSFontItemsConfig().
getPluginButtons | ( | ) |
Returns the list of buttons implemented by the plugin
Definition at line 166 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$pluginButtons.
getPluginLabels | ( | ) |
Returns the list of toolbar labels implemented by the plugin
Definition at line 176 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$pluginLabels.
getRequiredPlugins | ( | ) |
Returns the list of plugins required by the plugin
Definition at line 206 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$requiredPlugins.
|
protected |
Return TRUE if we are in the FE, but not in the FE editing feature of BE.
Definition at line 256 of file RteHtmlAreaApi.php.
References $GLOBALS, and RteHtmlAreaApi\isFrontendEditActive().
Referenced by Spellchecker\buildJavascriptConfiguration(), RteHtmlAreaApi\getFullFileName(), and RteHtmlAreaApi\main().
|
protected |
Checks whether frontend editing is active.
Definition at line 268 of file RteHtmlAreaApi.php.
References $GLOBALS.
Referenced by Spellchecker\buildJavascriptConfiguration(), RteHtmlAreaApi\getFullFileName(), and RteHtmlAreaApi\isFrontend().
main | ( | array | $configuration | ) |
Returns TRUE if the plugin is available and correctly initialized
array | $configuration | Configuration array given from calling object down to the single plugins |
Definition at line 110 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$configuration, $GLOBALS, and RteHtmlAreaApi\isFrontend().
requiresClassesConfiguration | ( | ) |
Returns TRUE if the extension requires the PageTSConfig Classes configuration
Definition at line 196 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$requiresClassesConfiguration.
setToolbar | ( | array | $toolbar | ) |
Set toolbal
array | $toolbar |
Definition at line 216 of file RteHtmlAreaApi.php.
References RteHtmlAreaApi\$toolbar.
|
protected |
Writes contents in a file in typo3temp and returns the file name
string | $label,: | A label to insert at the beginning of the name of the file |
string | $fileExtension,: | The file extension of the file, defaulting to 'js' |
string | $contents,: | The contents to write into the file |
\RuntimeException | If writing to file failed |
Definition at line 309 of file RteHtmlAreaApi.php.
References $GLOBALS, GeneralUtility\minifyJavaScript(), GeneralUtility\resolveBackPath(), GeneralUtility\shortMD5(), and GeneralUtility\writeFileToTypo3tempDir().
Referenced by MicroDataSchema\buildJavascriptConfiguration(), Typo3Link\buildJavascriptConfiguration(), Language\buildJavascriptConfiguration(), Abbreviation\buildJavascriptConfiguration(), and SelectFont\buildJSFontItemsConfig().
|
protected |
Definition at line 102 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\main().
|
protected |
Definition at line 81 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\getConvertToolbarForHtmlAreaArray().
|
protected |
Definition at line 32 of file RteHtmlAreaApi.php.
Referenced by Typo3Link\buildJavascriptConfiguration(), and RteHtmlAreaApi\getExtensionKey().
|
protected |
Definition at line 74 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\addsButtons().
|
protected |
Definition at line 60 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\buildJavascriptConfiguration(), and RteHtmlAreaApi\getPluginButtons().
|
protected |
Definition at line 67 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\getPluginLabels().
|
protected |
Definition at line 39 of file RteHtmlAreaApi.php.
|
protected |
Definition at line 46 of file RteHtmlAreaApi.php.
|
protected |
Definition at line 95 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\getRequiredPlugins().
|
protected |
Definition at line 88 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\requiresClassesConfiguration().
|
protected |
Definition at line 53 of file RteHtmlAreaApi.php.
Referenced by RteHtmlAreaApi\setToolbar().