TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
BlockElements Class Reference
Inheritance diagram for BlockElements:
RteHtmlAreaApi

Public Member Functions

 buildJavascriptConfiguration ()
 
- Public Member Functions inherited from 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 RteHtmlAreaApi
 $extensionKey = 'rtehtmlarea'
 
 $pluginName
 
 $relativePathToSkin = ''
 
 $toolbar
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = true
 
 $convertToolbarForHtmlAreaArray = array()
 
 $requiresClassesConfiguration = false
 
 $requiredPlugins = ''
 
 $configuration
 

Additional Inherited Members

- Protected Member Functions inherited from 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 ( )

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 BlockElements\$defaultBlockElementsOrder, RteHtmlAreaApi\cleanList(), RteHtmlAreaApi\getLanguageService(), RteHtmlAreaApi\getPageConfigLabel(), GeneralUtility\strtolower(), and GeneralUtility\trimExplode().

Member Data Documentation

$convertToolbarForHtmlAreaArray
protected
Initial value:
= array(
'formatblock' => 'FormatBlock',
'indent' => 'Indent',
'outdent' => 'Outdent',
'blockquote' => 'Blockquote',
'insertparagraphbefore' => 'InsertParagraphBefore',
'insertparagraphafter' => 'InsertParagraphAfter',
'left' => 'JustifyLeft',
'center' => 'JustifyCenter',
'right' => 'JustifyRight',
'justifyfull' => 'JustifyFull',
'orderedlist' => 'InsertOrderedList',
'unorderedlist' => 'InsertUnorderedList',
'line' => 'InsertHorizontalRule'
)

Definition at line 44 of file BlockElements.php.

$defaultBlockElements
protected
Initial value:
= array(
'none' => 'No block',
'p' => 'Paragraph',
'h1' => 'Heading 1',
'h2' => 'Heading 2',
'h3' => 'Heading 3',
'h4' => 'Heading 4',
'h5' => 'Heading 5',
'h6' => 'Heading 6',
'pre' => 'Preformatted',
'address' => 'Address',
'article' => 'Article',
'aside' => 'Aside',
'blockquote' => 'Long quotation',
'div' => 'Container',
'footer' => 'Footer',
'header' => 'Header',
'nav' => 'Navigation',
'section' => 'Section'
)

Definition at line 65 of file BlockElements.php.

$defaultBlockElementsOrder = 'none, p, h1, h2, h3, h4, h5, h6, pre, address, article, aside, blockquote, div, footer, header, nav, section'
protected

Definition at line 91 of file BlockElements.php.

Referenced by BlockElements\buildJavascriptConfiguration().

$pluginButtons = 'formatblock, indent, outdent, blockquote, insertparagraphbefore, insertparagraphafter, left, center, right, justifyfull, orderedlist, unorderedlist, line'
protected

Definition at line 37 of file BlockElements.php.

$pluginName = 'BlockElements'
protected

Definition at line 30 of file BlockElements.php.