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

Public Member Functions

 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 Attributes

 $pluginName = 'BlockElements'
 
 $pluginButtons = 'formatblock, indent, outdent, blockquote, insertparagraphbefore, insertparagraphafter, left, center, right, justifyfull, orderedlist, unorderedlist, line'
 
 $convertToolbarForHtmlAreaArray
 
 $defaultBlockElements
 
 $defaultBlockElementsOrder = 'none, p, h1, h2, h3, h4, h5, h6, pre, address, article, aside, blockquote, div, footer, header, nav, section'
 
- 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

BlockElements extension for htmlArea RTE

Definition at line 23 of file BlockElements.php.

Member Function Documentation

◆ buildJavascriptConfiguration()

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

References TYPO3\CMS\Rtehtmlarea\Extension\BlockElements\$defaultBlockElementsOrder, TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\cleanList(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\getLanguageService(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\getPageConfigLabel(), TYPO3\CMS\Core\Utility\GeneralUtility\strtolower(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $convertToolbarForHtmlAreaArray

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$convertToolbarForHtmlAreaArray
protected
Initial value:
= [
'formatblock' => 'FormatBlock'

Definition at line 44 of file BlockElements.php.

◆ $defaultBlockElements

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$defaultBlockElements
protected
Initial value:
= [
'none' => 'No block'

Definition at line 65 of file BlockElements.php.

◆ $defaultBlockElementsOrder

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$defaultBlockElementsOrder = 'none, p, h1, h2, h3, h4, h5, h6, pre, address, article, aside, blockquote, div, footer, header, nav, section'
protected

◆ $pluginButtons

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$pluginButtons = 'formatblock, indent, outdent, blockquote, insertparagraphbefore, insertparagraphafter, left, center, right, justifyfull, orderedlist, unorderedlist, line'
protected

Definition at line 37 of file BlockElements.php.

◆ $pluginName

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

Definition at line 30 of file BlockElements.php.