Task #106636
openRTE with default value
0%
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
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
Updated by Cyril Janody 19 days ago
- Tracker changed from Feature to Task
- TYPO3 Version set to 14
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
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
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
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
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
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
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
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
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