TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController:
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase TYPO3\CMS\Backend\Rte\AbstractRte tx_rtehtmlarea_pi2

Public Member Functions

 drawRTE (&$parentObject, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue)
 
 setSaveRTE ($RTEcounter, $form, $textareaId)
 
 getPageRenderer ()
 
 wrapCDATA ($string)
 
- Public Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase
 isAvailable ()
 
 enableRegisteredPlugins ()
 
 setToolbar ()
 
 setPlugins ()
 
 convertToolbarForHTMLArea ($button)
 
 registerRTEinJS ($RTEcounter, $table='', $uid='', $field='', $textAreaId='')
 
 isPluginEnabled ($pluginId)
 
 buildStyleSheet ()
 
 buildJSClassesConfig ($RTEcounter)
 
 buildJSClassesArray ()
 
 buildNestedJSArray ($conf)
 
 buildJSMainLangArray ()
 
 writeTemporaryFile ($sourceFileName='', $label, $fileExtension='js', $contents='', $concatenate=FALSE)
 
 buildJSMainLangFile ($RTEcounter)
 
 buildJSLangArray ($plugin)
 
 getLLContent ($string)
 
 getPageConfigLabel ($string, $JScharCode=1)
 
 feJScharCode ($str)
 
 getFullFileName ($filename)
 
 setSaveRTE ($RTEcounter, $formName, $textareaId, $textareaName)
 
 setDeleteRTE ($RTEcounter, $formName, $textareaId)
 
 is_FE ()
 
 isFrontendEditActive ()
 
 clientInfo ($userAgent='')
 
 logDeprecatedProperty ($deprecatedProperty, $useProperty, $version)
 
 RTEtsConfigParams ()
 
 cleanList ($str)
 
 filterStyleEl ($elValue, $matchList)
 
 loremIpsumInsert ($params)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Rte\AbstractRte
 isAvailable ()
 
 drawRTE (&$pObj, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue)
 
 transformContent ($dirRTE, $value, $table, $field, $row, $specConf, $thisConfig, $RTErelPath, $pid)
 
 triggerField ($fieldName)
 

Public Attributes

 $RTEWrapStyle = ''
 
 $RTEdivStyle = ''
 
 $elementId
 
 $elementParts
 
 $tscPID
 
 $typeVal
 
 $thePid
 
 $RTEsetup = array()
 
 $thisConfig = array()
 
 $confValues
 
 $language
 
 $OutputCharset
 
 $specConf
 
 $LOCAL_LANG
 
- Public Attributes inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase
 $conf_supported_browser
 
 $conf_toolbar_hide
 
 $defaultToolbarOrder
 
 $convertToolbarForHtmlAreaArray
 
 $pluginButton = array()
 
 $pluginLabel = array()
 
 $RTEdivStyle
 
 $extHttpPath
 
 $backPath = ''
 
 $siteURL
 
 $hostURL
 
 $typoVersion
 
 $ID = 'rtehtmlarea'
 
 $debugMode = FALSE
 
 $client
 
 $TCEform
 
 $elementId
 
 $elementParts
 
 $tscPID
 
 $typeVal
 
 $thePid
 
 $RTEsetup
 
 $thisConfig
 
 $confValues
 
 $language
 
 $contentTypo3Language
 
 $contentISOLanguage
 
 $charset = 'utf-8'
 
 $contentCharset = 'utf-8'
 
 $OutputCharset = 'utf-8'
 
 $editorCSS
 
 $specConf
 
 $toolbar = array()
 
 $toolbarOrderArray = array()
 
 $registeredPlugins = array()
 
- Public Attributes inherited from TYPO3\CMS\Backend\Rte\AbstractRte
 $errorLog = array()
 
 $ID = ''
 

Protected Member Functions

 addStyleSheet ($key, $href, $title='', $relation='stylesheet')
 
- Protected Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase
 addPageStyle ()
 
 getContentCssFileName ()
 
 addSkin ()
 
 addStyleSheet ($key, $href, $title='', $relation='stylesheet')
 
 initializeToolbarConfiguration ()
 
 addRteJsFiles ($RTEcounter)
 
 getRteInitJsCode ()
 
 getJSToolbarArray ()
 

Protected Attributes

 $pageRenderer
 
- Protected Attributes inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase
 $contentLanguageService
 
 $pluginEnabledArray = array()
 
 $pluginEnabledCumulativeArray = array()
 
 $fullScreen = FALSE
 
 $pageRenderer
 

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! Front end RTE based on htmlArea

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

Definition at line 21 of file FrontendRteController.php.

Member Function Documentation

◆ addStyleSheet()

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::addStyleSheet (   $key,
  $href,
  $title = '',
  $relation = 'stylesheet' 
)
protected

Add style sheet file to document header

Parameters
string$key,some key identifying the style sheet
string$href,uri to the style sheet file
string$title,value for the title attribute of the link element
string$relation,value for the rel attribute of the link element
Returns
void

Definition at line 269 of file FrontendRteController.php.

◆ drawRTE()

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::drawRTE ( $parentObject,
  $table,
  $field,
  $row,
  $PA,
  $specConf,
  $thisConfig,
  $RTEtypeVal,
  $RTErelPath,
  $thePidValue 
)

Draws the RTE as an iframe

Parameters
objectReference to parent object, which is an instance of the TCEforms.
stringThe table name
stringThe field name
arrayThe current row from which field is being rendered
arrayArray of standard content for rendering form fields from TCEforms. See TCEforms for details on this. Includes for instance the value and the form field name, java script actions and more.
array"special" configuration - what is found at position 4 in the types configuration of a field from record, parsed into an array.
arrayConfiguration for RTEs; A mix between TSconfig and otherwise. Contains configuration for display, which buttons are enabled, additional transformation information etc.
stringRecord "type" field value.
stringRelative path for images/links in RTE; this is used when the RTE edits content from static files where the path of such media has to be transformed forth and back!
integerPID value of record (true parent page id)
Returns
string HTML code for RTE!
Todo:
Define visibility

Definition at line 106 of file FrontendRteController.php.

References TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\$charset, TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\$contentCharset, TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\$contentISOLanguage, TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\$contentTypo3Language, $GLOBALS, TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\$specConf, TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\$thisConfig, $TSFE, $TYPO3_CONF_VARS, TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\addPageStyle(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\addRteJsFiles(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\addSkin(), TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\buildJSMainLangFile(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\clientInfo(), TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionNumberToInteger(), TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause(), TYPO3\CMS\Core\Utility\GeneralUtility\formatForTextarea(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\getFullFileName(), TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\getPageRenderer(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\getRteInitJsCode(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\initializeToolbarConfiguration(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\isPluginEnabled(), TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase\registerRTEinJS(), TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\setSaveRTE(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\siteRelPath(), TYPO3\CMS\Backend\Rte\AbstractRte\transformContent(), TYPO3\CMS\Backend\Rte\AbstractRte\triggerField(), and TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\wrapCDATA().

◆ getPageRenderer()

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::getPageRenderer ( )

Gets instance of PageRenderer

Returns
PageRenderer

Definition at line 300 of file FrontendRteController.php.

References $GLOBALS, and TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\$pageRenderer.

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE().

◆ setSaveRTE()

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::setSaveRTE (   $RTEcounter,
  $form,
  $textareaId 
)

Return the JS-Code for copy the HTML-Code from the editor in the hidden input field. This is for submit function from the form.

Parameters
integer$RTEcounter,The index number of the RTE editing area.
string$form,the name of the form
string$textareaId,the id of the textarea
Returns
string the JS-Code
Todo:
Define visibility

Definition at line 283 of file FrontendRteController.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE().

◆ wrapCDATA()

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::wrapCDATA (   $string)

Wrap input string in CDATA enclosure

Parameters
string$string,input to be wrapped
Returns
string wrapped string

Definition at line 314 of file FrontendRteController.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE().

Member Data Documentation

◆ $confValues

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$confValues
Todo:
Define visibility

Definition at line 69 of file FrontendRteController.php.

◆ $elementId

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$elementId
Todo:
Define visibility

Definition at line 34 of file FrontendRteController.php.

◆ $elementParts

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$elementParts
Todo:
Define visibility

Definition at line 39 of file FrontendRteController.php.

◆ $language

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$language

Definition at line 71 of file FrontendRteController.php.

◆ $LOCAL_LANG

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$LOCAL_LANG
Todo:
Define visibility

Definition at line 83 of file FrontendRteController.php.

◆ $OutputCharset

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$OutputCharset

Definition at line 73 of file FrontendRteController.php.

◆ $pageRenderer

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$pageRenderer
protected

◆ $RTEdivStyle

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$RTEdivStyle = ''

Definition at line 27 of file FrontendRteController.php.

◆ $RTEsetup

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$RTEsetup = array()
Todo:
Define visibility

Definition at line 59 of file FrontendRteController.php.

◆ $RTEWrapStyle

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$RTEWrapStyle = ''

Definition at line 24 of file FrontendRteController.php.

◆ $specConf

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$specConf
Todo:
Define visibility

Definition at line 78 of file FrontendRteController.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE().

◆ $thePid

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$thePid
Todo:
Define visibility

Definition at line 54 of file FrontendRteController.php.

◆ $thisConfig

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$thisConfig = array()
Todo:
Define visibility

Definition at line 64 of file FrontendRteController.php.

Referenced by TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController\drawRTE().

◆ $tscPID

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$tscPID
Todo:
Define visibility

Definition at line 44 of file FrontendRteController.php.

◆ $typeVal

TYPO3\CMS\Rtehtmlarea\Controller\FrontendRteController::$typeVal
Todo:
Define visibility

Definition at line 49 of file FrontendRteController.php.