Deprecation: #79341 - TCA richtext configuration in defaultExtras dropped
See forge#79341
Description
Enabling richtext rendering for fields in the Backend record editor has been simplified.
In the past, a typical
TCA configuration of a richtext field looked like:
'columns' => [
'content' => [
'config' => [
'type' => 'text',
],
'defaultExtras' => 'richtext:rte_transform',
],
];
The
default is obsolete and substituted with
enable within the
config section:
'columns' => [
'content' => [
'config' => [
'type' => 'text',
'enableRichtext' => true,
],
],
];
If the RTE was enabled for a specific type only, it looked like this:
'columns' => [
'content' => [
'config' => [
'type' => 'text',
],
],
],
'types' => [
'myType' => [
'columnsOverrides' => [
'aField' => [
'defaultExtras' => 'richtext:rte_transform',
],
],
],
],
This is now:
'columns' => [
'content' => [
'config' => [
'type' => 'text',
],
],
],
'types' => [
'myType' => [
'columnsOverrides' => [
'aField' => [
'config' => [
'enableRichtext' => true,
],
],
],
],
],
Impact
Using defaultExtras to enable richtext editor will stop working in TYPO3 v9. An automatic
TCA migration
transfers to the new syntax in TYPO3 v8 and logs deprecations.
Affected Installations
All installations using
default for richtext configuration.
Migration
Remove the defaultExtras line and set
'enable within the config section of the field.
This is allowed in
columns for specific record types, too.