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

Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

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

Detailed Description

TYPO3 HTML Parser extension for htmlArea RTE

Definition at line 24 of file Typo3HtmlParser.php.

Member Function Documentation

◆ applyToolbarConstraints()

TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser::applyToolbarConstraints (   $show)

Return an updated array of toolbar enabled buttons Force inclusion of hidden button cleanword

Parameters
array$show,array of toolbar elements that will be enabled, unless modified here
Returns
array toolbar button array, possibly updated

Definition at line 88 of file Typo3HtmlParser.php.

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

◆ buildJavascriptConfiguration()

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

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins, in this case, JS configuration of block elements

Definition at line 67 of file Typo3HtmlParser.php.

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

◆ main()

TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser::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 55 of file Typo3HtmlParser.php.

Member Data Documentation

◆ $convertToolbarForHtmlAreaArray

TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser::$convertToolbarForHtmlAreaArray
protected
Initial value:
= [
'cleanword' => 'CleanWord'
]

Definition at line 45 of file Typo3HtmlParser.php.

◆ $pluginButtons

TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser::$pluginButtons = 'cleanword'
protected

Definition at line 38 of file Typo3HtmlParser.php.

◆ $pluginName

TYPO3\CMS\Rtehtmlarea\Extension\Typo3HtmlParser::$pluginName = 'TYPO3HtmlParser'
protected

Definition at line 31 of file Typo3HtmlParser.php.