Breaking: #67811 - Rte API
See forge#67811
Description
The RTE implementation was based on the main classes TYPO3CMSBackend,
TYPO3CMSRtehtmlarea and TYPO3CMSRtehtmlarea. 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
TYPO3CMSBackendis deprecated and no longer used.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 TYPO3CMSCorehas been dropped along with theAuthentication 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
TYPO3CMSBackendhas been dropped.Rte Abstract Rte TYPO3CMSRtehtmlareahas been dropped and its functionality was moved toRte Html Area Base TYPO3CMSRtehtmlarea. All methods and properties except the main entry methodForm Element Richtext Element renderused by() Formare protected.Engine TYPO3CMSRtehtmlareahas been refactored. MethodRte 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.