Breaking: #67811 - Rte API
See forge#67811
Description
The RTE implementation was based on the main classes \TYPO3\,
\TYPO3\ and \TYPO3\. These
three main API were removed or changed method signatures and internal method calls.
The functionality to render RTE standalone and out of a context of Form was dropped.
Impact
Main API changes
- Method
TYPO3\is deprecated and no longer used.CMS\ Backend\ Utility\ Backend Utility:: RTEget Obj () Formnow creates aEngine RichwithText Element NodeandFactory make, the created object is not a singleton but a prototype.Instance () - With the deprecation of
RTEgetmethodObj transformfromContent Abstracthas been inlined toRte Data.Handler - Method
isfromAvailable Abstracthas been dropped. Every valid browser and browser version for TYPO3 CMS 7 can render the default richtext editor. Custom checks may be implement viaRte NodeinResolver Interface Form.Engine - Property
RTE_inerrors TYPO3\has been dropped along with theCMS\ Core\ Authentication\ Backend User Authentication RTEgetdeprecation.Obj ()
RTE registration
- Different richtext implementations can no longer register in
$GLOBALS. Instead, registration must be done in['TYPO3_ CONF_ VARS'] ['BE'] ['RTE_ reg'] FormviaEngine NodeAPI, the methodFactory drawhas been dropped.RTE - Transformations are not available via
Abstractanymore, hooks withinRte Rtecan be used for custom transformations.Html Parser
PHP classes
\TYPO3\has been dropped.CMS\ Backend\ Rte\ Abstract Rte \TYPO3\has been dropped and its functionality was moved toCMS\ Rtehtmlarea\ Rte Html Area Base \TYPO3\. All methods and properties except the main entry methodCMS\ Rtehtmlarea\ Form\ Element\ Richtext Element renderused by() Formare protected.Engine \TYPO3\has been refactored. MethodCMS\ Rtehtmlarea\ Rte Html Area Api mainreceives a configuration array instead of an instance of the parent object. Some methods were dropped and are no longer called.()
RTE Plugin Configuration
- Parameter
$GLOBALSwas dropped, plugin property['TYPO3_ CONF_ VARS'] ['EXTCONF'] ['an Extension Key'] ['plugins'] ['a Plugin Name'] ['add Icons To Skin'] relativeis no longer evaluated.Path To Skin - A couple of helper methods were added to
RteHtml Area Api - This API may get further changes in the future.
Affected Installations
Extensions that extend one of the above mentioned extensions or API.
Migration
Adapt the code using these methods.