Rich text editors in the TYPO3 backend

When you configure a table in $TCA and add a field of the type text you can configure

The rtehtmlarea RTE activated in the TYPO3 backend

For full details about setting up a field to use an RTE, please refer to the chapter labeled 'special-configuration-options' in older versions of the TCA Reference.

The short story is that it's enough to set the key enableRichtext to true.

packages/my_extension/Configuration/TCA/tx_myextension_table.php
<?php

return [
    //...
    'columns' => [
        'rte_5' => [
            'label' => 'RTE Example',
            'config' => [
                'type' => 'text',
                'enableRichtext' => true,
                'richtextConfiguration' => 'full',
            ],
        ],
    ],
];
Copied!

This works for FlexForms too:

packages/my_extension/Configuration/FlexForms/MyPlugin.php
<poem>
    <label>RTE Example (Flexform)</label>
    <config>
        <type>text</type>
        <enableRichtext>true</enableRichtext>
        <richtextConfiguration>full</richtextConfiguration>
    </config>
</poem>
Copied!