TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\Extension\BlockElements Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Extension\BlockElements:
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi tx_rtehtmlarea_blockelements

Public Member Functions

 buildJavascriptConfiguration ($RTEcounter)
 
- Public Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 main ($parentObject)
 
 addButtonsToToolbar ()
 
 getPathToSkin ()
 
 buildJavascriptConfiguration ($RTEcounter)
 
 getExtensionKey ()
 
 getPathToPluginDirectory ()
 
 addsButtons ()
 
 getPluginButtons ()
 
 getPluginLabels ()
 
 getConvertToolbarForHtmlAreaArray ()
 
 requiresClassesConfiguration ()
 
 requiresSynchronousLoad ()
 
 setSynchronousLoad ($value=TRUE)
 
 getRequiredPlugins ()
 

Protected Attributes

 $extensionKey = 'rtehtmlarea'
 
 $pluginName = 'BlockElements'
 
 $relativePathToLocallangFile = 'extensions/BlockElements/locallang.xlf'
 
 $relativePathToSkin = 'extensions/BlockElements/skin/htmlarea.css'
 
 $htmlAreaRTE
 
 $thisConfig
 
 $toolbar
 
 $LOCAL_LANG
 
 $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
 
 $pluginName
 
 $relativePathToLocallangFile
 
 $relativePathToSkin
 
 $relativePathToPluginDirectory
 
 $htmlAreaRTE
 
 $rteExtensionKey
 
 $thisConfig
 
 $toolbar
 
 $LOCAL_LANG
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = TRUE
 
 $convertToolbarForHtmlAreaArray = array()
 
 $requiresClassesConfiguration = FALSE
 
 $requiresSynchronousLoad = FALSE
 
 $requiredPlugins = ''
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! BlockElements extension for htmlArea RTE

Author
Stanislas Rolland <typo3(arobas)sjbr.ca>

Definition at line 21 of file BlockElements.php.

Member Function Documentation

◆ buildJavascriptConfiguration()

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::buildJavascriptConfiguration (   $RTEcounter)

Return JS configuration of the htmlArea plugins registered by the extension

Parameters
integerRelative id of the RTE editing area in the form
Returns
string JS configuration for registered plugins, in this case, JS configuration of block elements

Definition at line 94 of file BlockElements.php.

References TYPO3\CMS\Rtehtmlarea\Extension\BlockElements\$defaultBlockElements, TYPO3\CMS\Rtehtmlarea\Extension\BlockElements\$defaultBlockElementsOrder, $GLOBALS, $TSFE, 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:
= 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 49 of file BlockElements.php.

◆ $defaultBlockElements

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$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.

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

◆ $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

◆ $extensionKey

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$extensionKey = 'rtehtmlarea'
protected

Definition at line 23 of file BlockElements.php.

◆ $htmlAreaRTE

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$htmlAreaRTE
protected

Definition at line 35 of file BlockElements.php.

◆ $LOCAL_LANG

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$LOCAL_LANG
protected

Definition at line 44 of file BlockElements.php.

◆ $pluginButtons

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

Definition at line 47 of file BlockElements.php.

◆ $pluginName

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

Definition at line 26 of file BlockElements.php.

◆ $relativePathToLocallangFile

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$relativePathToLocallangFile = 'extensions/BlockElements/locallang.xlf'
protected

Definition at line 29 of file BlockElements.php.

◆ $relativePathToSkin

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$relativePathToSkin = 'extensions/BlockElements/skin/htmlarea.css'
protected

Definition at line 32 of file BlockElements.php.

◆ $thisConfig

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$thisConfig
protected

Definition at line 38 of file BlockElements.php.

◆ $toolbar

TYPO3\CMS\Rtehtmlarea\Extension\BlockElements::$toolbar
protected

Definition at line 41 of file BlockElements.php.