Project

General

Profile

Actions

Task #106636

open

RTE with default value

Added by Cyril Janody 20 days ago. Updated 11 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Start date:
2025-04-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
14
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

Hi guys,

It is currently possible to set a default value for input/text fields via the placeholder configuration.

As we needed the same functionality for the RTE, we implemented it and share it with you so that it can eventually be part of TYPO3.

TCA example:

        'rte_6' => [
            'label' => 'rte_6 with placeholder and null handling',
            'config' => [
                'type' => 'text',
                'default' => null,
                'enableRichtext' => true,
                'mode' => 'useOrOverridePlaceholder',
                'nullable' => true,
                'placeholder' => '<p>My placeholder text</p>',
            ],
        ],

Here are some steps to test it:
  • Install styleguide;
  • Create the page tree including TCA demo records;
  • Use the "List" module and select the page labeled "elements rte";
  • Edit one of the "Form engine elements - rte", search for the field "rte_6". The placeholder '<p>My placeholder text</p>' is used as default;
  • Check the box to override it;

Sincerely

Actions #1

Updated by Gerrit Code Review 20 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #2

Updated by Cyril Janody 19 days ago

  • Tracker changed from Feature to Task
  • TYPO3 Version set to 14
Actions #3

Updated by Gerrit Code Review 19 days ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89285

Actions #4

Updated by Gerrit Code Review 19 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #5

Updated by Gerrit Code Review 19 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #6

Updated by Cyril Janody 19 days ago

  • Description updated (diff)
Actions #7

Updated by Gerrit Code Review 19 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #8

Updated by Cyril Janody 19 days ago

  • Description updated (diff)
Actions #9

Updated by Gerrit Code Review 18 days ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #10

Updated by Gerrit Code Review 18 days ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #11

Updated by Cyril Janody 18 days ago

  • Description updated (diff)
Actions #12

Updated by Cyril Janody 18 days ago

  • Description updated (diff)
Actions #13

Updated by Benni Mack 14 days ago

  • Sprint Focus set to On Location Sprint
Actions #14

Updated by Juliane Wundermann 14 days ago

We have tested the feature in the backend according to the description and were able to confirm the functionality. We have not tested the feature in the frontend

Actions #15

Updated by Gerrit Code Review 11 days ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions #16

Updated by Gerrit Code Review 11 days ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89280

Actions

Also available in: Atom PDF