[!!!][TASK] Prepare richtext configuration 11/51311/11
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 13 Jan 2017 16:55:56 +0000 (17:55 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 17 Jan 2017 08:48:05 +0000 (09:48 +0100)
commit00677ce4cc5731d6adb621d011caca7fcbd34274
tree9a3cdc19aa4eb9bdfa65f7ff1238f5e6d2e3d248
parent7e90dbcb194730263f40501a67b8411031cfb0ad
[!!!][TASK] Prepare richtext configuration

Configuring a richtext field in TCA with the "defaultExtras"
setting (which was formerly the 5th showitem parameter) has
been ugly ever since: The DataHandler needed a special _TRANSFORM_
field to trigger required RTE transformations, further config
depends on pageTs settings.

The patch gets rid of "defaultExtras" for richtext elements and
adds a new option "enableRichtext=true" within the config section
for type=text TCA fields.
This setting can be set via "columnsOverrides" for specific types, too.

As an intermediate solution, the configuration class "Richtext" is
added to fetch richtext configuration. This will be extended with
another patch to provide ckeditor configuration on TCA level.

Change-Id: I70f4cb26e2a45629b99680e532d376538afd2b90
Resolves: #79341
Releases: master
Reviewed-on: https://review.typo3.org/51311
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
29 files changed:
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaText.php [new file with mode: 0644]
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php [new file with mode: 0644]
typo3/sysext/core/Classes/Configuration/Richtext.php [new file with mode: 0644]
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Html/RteHtmlParser.php
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Configuration/TCA/sys_news.php
typo3/sysext/core/Documentation/Changelog/8.0/Breaking-72783-RemovedRTETransformationOptionPreserveTables.rst
typo3/sysext/core/Documentation/Changelog/master/Deprecation-79341-MethodsRelatedToRichtextConfiguration.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Deprecation-79341-TCARichtextConfigurationInDefaultExtrasDropped.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-79341-TCARichtextConfigurationInConfigSection.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Configuration/RichtextTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php
typo3/sysext/css_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/fluid_styled_content/Configuration/TCA/Overrides/tt_content.php
typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php
typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php
typo3/sysext/rte_ckeditor/Classes/Form/Resolver/RichTextNodeResolver.php
typo3/sysext/rtehtmlarea/Classes/Controller/BrowseLinksController.php
typo3/sysext/rtehtmlarea/Classes/Controller/ParseHtmlController.php
typo3/sysext/rtehtmlarea/Classes/Controller/SelectImageController.php
typo3/sysext/rtehtmlarea/Classes/Controller/UserElementsController.php
typo3/sysext/rtehtmlarea/Classes/Extension/SelectFont.php
typo3/sysext/rtehtmlarea/Classes/Extension/Typo3Link.php
typo3/sysext/rtehtmlarea/Classes/Form/Element/RichTextElement.php
typo3/sysext/rtehtmlarea/Classes/Form/Resolver/RichTextNodeResolver.php
typo3/sysext/rtehtmlarea/Classes/ImageHandler/EditImageHandler.php