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 () Form
now creates aEngine Rich
withText Element Node
andFactory make
, the created object is not a singleton but a prototype.Instance () - With the deprecation of
RTEget
methodObj transform
fromContent Abstract
has been inlined toRte Data
.Handler - Method
is
fromAvailable Abstract
has been dropped. Every valid browser and browser version for TYPO3 CMS 7 can render the default richtext editor. Custom checks may be implement viaRte Node
inResolver Interface Form
.Engine - Property
RTE_
inerrors TYPO3\
has been dropped along with theCMS\ Core\ Authentication\ Backend User Authentication RTEget
deprecation.Obj ()
RTE registration
- Different richtext implementations can no longer register in
$GLOBALS
. Instead, registration must be done in['TYPO3_ CONF_ VARS'] ['BE'] ['RTE_ reg'] Form
viaEngine Node
API, the methodFactory draw
has been dropped.RTE - Transformations are not available via
Abstract
anymore, hooks withinRte Rte
can 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 render
used by() Form
are protected.Engine \TYPO3\
has been refactored. MethodCMS\ Rtehtmlarea\ Rte Html Area Api main
receives a configuration array instead of an instance of the parent object. Some methods were dropped and are no longer called.()
RTE Plugin Configuration
- Parameter
$GLOBALS
was dropped, plugin property['TYPO3_ CONF_ VARS'] ['EXTCONF'] ['an Extension Key'] ['plugins'] ['a Plugin Name'] ['add Icons To Skin'] relative
is no longer evaluated.Path To Skin - A couple of helper methods were added to
Rte
Html 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.