TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\Extension\SelectFont Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Extension\SelectFont:
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi tx_rtehtmlarea_selectfont

Public Member Functions

 main ($parentObject)
 
 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 Member Functions

 buildJSFontItemsConfig ($RTEcounter, $buttonId)
 

Protected Attributes

 $extensionKey = 'rtehtmlarea'
 
 $pluginName = 'SelectFont'
 
 $relativePathToLocallangFile = 'extensions/SelectFont/locallang.xlf'
 
 $relativePathToSkin = ''
 
 $htmlAreaRTE
 
 $thisConfig
 
 $toolbar
 
 $LOCAL_LANG
 
 $pluginButtons = 'fontstyle,fontsize'
 
 $convertToolbarForHtmlAreaArray
 
 $defaultFont
 
 $RTEProperties
 
- 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! SelectFont extension for htmlArea RTE

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

Definition at line 21 of file SelectFont.php.

Member Function Documentation

◆ buildJavascriptConfiguration()

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::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

Definition at line 95 of file SelectFont.php.

References TYPO3\CMS\Rtehtmlarea\Extension\SelectFont\buildJSFontItemsConfig(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ buildJSFontItemsConfig()

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::buildJSFontItemsConfig (   $RTEcounter,
  $buttonId 
)
protected

Return Javascript configuration of font faces

Parameters
integer$RTEcounter,The index number of the current RTE editing area within the form.
string$buttonId,button id
Returns
string Javascript configuration of font faces

Definition at line 114 of file SelectFont.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\inList(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

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

◆ main()

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::main (   $parentObject)

Definition at line 79 of file SelectFont.php.

References $GLOBALS.

Member Data Documentation

◆ $convertToolbarForHtmlAreaArray

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::$convertToolbarForHtmlAreaArray
protected
Initial value:
= array(
'fontstyle' => 'FontName',
'fontsize' => 'FontSize'
)

Definition at line 49 of file SelectFont.php.

◆ $defaultFont

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::$defaultFont
protected
Initial value:
= array(
'fontstyle' => array(
'Arial' => 'Arial,sans-serif',
'Arial Black' => '\'Arial Black\',sans-serif',
'Verdana' => 'Verdana,Arial,sans-serif',
'Times New Roman' => '\'Times New Roman\',Times,serif',
'Garamond' => 'Garamond',
'Lucida Handwriting' => '\'Lucida Handwriting\'',
'Courier' => 'Courier',
'Webdings' => 'Webdings',
'Wingdings' => 'Wingdings'
),
'fontsize' => array(
'Extra small' => '8px',
'Very small' => '9px',
'Small' => '10px',
'Medium' => '12px',
'Large' => '16px',
'Very large' => '24px',
'Extra large' => '32px'
)
)

Definition at line 54 of file SelectFont.php.

◆ $extensionKey

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

Definition at line 23 of file SelectFont.php.

◆ $htmlAreaRTE

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

Definition at line 35 of file SelectFont.php.

◆ $LOCAL_LANG

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

Definition at line 44 of file SelectFont.php.

◆ $pluginButtons

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::$pluginButtons = 'fontstyle,fontsize'
protected

Definition at line 47 of file SelectFont.php.

◆ $pluginName

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

Definition at line 26 of file SelectFont.php.

◆ $relativePathToLocallangFile

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

Definition at line 29 of file SelectFont.php.

◆ $relativePathToSkin

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::$relativePathToSkin = ''
protected

Definition at line 32 of file SelectFont.php.

◆ $RTEProperties

TYPO3\CMS\Rtehtmlarea\Extension\SelectFont::$RTEProperties
protected

Definition at line 77 of file SelectFont.php.

◆ $thisConfig

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

Definition at line 38 of file SelectFont.php.

◆ $toolbar

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

Definition at line 41 of file SelectFont.php.