‪TYPO3CMS  ‪main
TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement Class Reference
Inheritance diagram for TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (private readonly EventDispatcherInterface $eventDispatcher, private readonly UriBuilder $uriBuilder, private readonly Locales $locales,)
 
 render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 injectNodeFactory (NodeFactory $nodeFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

 getLanguageIsoCodeOfContent ()
 
 resolveCkEditorConfiguration ()
 
 getExtraPlugins ()
 
 replaceLanguageFileReferences (array $configuration)
 
 replaceAbsolutePathsToRelativeResourcesPath (array $configuration)
 
 resolveUrlPath (string $value)
 
array prepareConfigurationForEditor ()
 
 sanitizeFieldId (string $itemFormElementName)
 
 translationExists (string $language)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 renderLabel (string $for)
 
 wrapWithFieldsetAndLegend (string $innerHTML)
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
 resolveJavaScriptEvaluation (array $resultArray, string $name, ?object $evalObject)
 
string checkBoxParams (string $itemName, int $formElementValue, int $checkbox, int $checkboxesCount, array $fieldChangeFuncs=[], bool $invert=false)
 
 calculateColumnMarkup (int $cols)
 
 appendValueToLabelInDebugMode (string|int $label, string|int $value)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldWizard
 
array $rteConfiguration = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
NodeFactory $nodeFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Render rich text editor in FormEngine

This is a specific Backend FormEngine implementation and is not considered part of the Public TYPO3 API.

Definition at line 37 of file RichTextElement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::__construct ( private readonly EventDispatcherInterface  $eventDispatcher,
private readonly UriBuilder  $uriBuilder,
private readonly Locales  $locales 
)

Definition at line 78 of file RichTextElement.php.

Member Function Documentation

◆ getExtraPlugins()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::getExtraPlugins ( )
protected

Get configuration of external/additional plugins

Definition at line 217 of file RichTextElement.php.

Referenced by TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement\resolveCkEditorConfiguration().

◆ getLanguageIsoCodeOfContent()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::getLanguageIsoCodeOfContent ( )
protected

Determine the contents language iso code

Definition at line 172 of file RichTextElement.php.

Referenced by TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement\prepareConfigurationForEditor().

◆ prepareConfigurationForEditor()

◆ render()

◆ replaceAbsolutePathsToRelativeResourcesPath()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::replaceAbsolutePathsToRelativeResourcesPath ( array  $configuration)
protected

◆ replaceLanguageFileReferences()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::replaceLanguageFileReferences ( array  $configuration)
protected

Add configuration to replace LLL: references with the translated value

Definition at line 260 of file RichTextElement.php.

References TYPO3\CMS\Backend\Form\Element\AbstractFormElement\getLanguageService().

Referenced by TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement\prepareConfigurationForEditor().

◆ resolveCkEditorConfiguration()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::resolveCkEditorConfiguration ( )
protected

◆ resolveUrlPath()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::resolveUrlPath ( string  $value)
protected

◆ sanitizeFieldId()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::sanitizeFieldId ( string  $itemFormElementName)
protected

◆ translationExists()

TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::translationExists ( string  $language)
protected

Member Data Documentation

◆ $defaultFieldInformation

array TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 43 of file RichTextElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
'otherLanguageContent' => [
'renderType' => 'otherLanguageContent',
'after' => [
'localizationStateSelector',
],
],
'defaultLanguageDifferences' => [
'renderType' => 'defaultLanguageDifferences',
'after' => [
'otherLanguageContent',
],
],
)

Default field wizards enabled for this element.

Definition at line 53 of file RichTextElement.php.

◆ $rteConfiguration

array TYPO3\CMS\RteCKEditor\Form\Element\RichTextElement::$rteConfiguration = array( )
protected

This property contains configuration related to the RTE But only the .editor configuration part

Definition at line 76 of file RichTextElement.php.