Richtext

class \TYPO3\CMS\Core\Configuration\Richtext

Prepare richtext configuration. Used in DataHandler and FormEngine

Tags

todo

When I grow up, I want to become a data provider

Table of Contents

Methods

getConfiguration()  : array
This is an intermediate class / method to retrieve RTE configuration until all core places use data providers to do that.
addFlattenedPageTsConfig()  : array
Add all PageTS.RTE options keys to configuration without dots
convertPlainArrayToTypoScriptArray()  : array
Returns an array with Typoscript the old way (with dot) Since the functionality in YAML is without the dots, but the new configuration is used without the dots this functionality adds also an explicit = 1 to the arrays
getPageTsConfiguration()  : array
Load PageTS configuration for the RTE
getRtePageTsConfigOfPid()  : array
Return RTE section of page TS
loadConfigurationFromPreset()  : array
Load a configuration preset from an external resource (currently only YAML is supported).

Methods

getConfiguration()

This is an intermediate class / method to retrieve RTE configuration until all core places use data providers to do that.

public getConfiguration(string $table, string $field, int $pid, string $recordType, array $tcaFieldConf) : array

Parameters

$table : string

The table the field is in

$field : string

Field name

$pid : int

Real page id

$recordType : string

Record type value

$tcaFieldConf : array

['config'] section of TCA field

Return values

array

addFlattenedPageTsConfig()

Add all PageTS.RTE options keys to configuration without dots

protected addFlattenedPageTsConfig(array $typoScriptArray) : array

We need to keep the dotted keys for backwards compatibility like ext:rtehtmlarea

Parameters

$typoScriptArray : array

TypoScriptArray

Return values

array —

array with config without dots added

convertPlainArrayToTypoScriptArray()

Returns an array with Typoscript the old way (with dot) Since the functionality in YAML is without the dots, but the new configuration is used without the dots this functionality adds also an explicit = 1 to the arrays

protected convertPlainArrayToTypoScriptArray(array $plainArray) : array

Parameters

$plainArray : array

An array

Return values

array —

array with TypoScript as usual (with dot)

getPageTsConfiguration()

Load PageTS configuration for the RTE

protected getPageTsConfiguration(string $table, string $field, int $pid, string $recordType) : array

Return RTE section of page TS, taking into account overloading via table, field and record type

Parameters

$table : string

The table the field is in

$field : string

Field name

$pid : int

Real page id

$recordType : string

Record type value

Return values

array

getRtePageTsConfigOfPid()

Return RTE section of page TS

protected getRtePageTsConfigOfPid(int $pid) : array

Parameters

$pid : int

Page ts of given pid

Return values

array —

RTE section of pageTs of given pid

loadConfigurationFromPreset()

Load a configuration preset from an external resource (currently only YAML is supported).

protected loadConfigurationFromPreset([string $presetName = '' ]) : array

This is the default behaviour and can be overridden by page TSconfig.

Parameters

$presetName : string = ''

Return values

array —

the parsed configuration

On this page