BeforeTransformTextForPersistenceEvent¶
New in version 13.3
The events BeforeTransformTextForPersistenceEvent,
AfterTransformTextForPersistenceEvent,
BeforeTransformTextForRichTextEditorEvent
AfterTransformTextForRichTextEditorEvent were introduced as
replacement for the removed hook
$GLOBALS
.
Modify data when saving rich-text-editor (RTE) content to the database (persistence). As opposed to AfterTransformTextForPersistenceEvent this event is executed before TYPO3 applied any kind of internal transformations like for links.
For a detailed description on how to use this event, see the corresponding after event: AfterTransformTextForPersistenceEvent.
For an example see Example: Transform a text before saving to database.
API of BeforeTransformTextForPersistenceEvent¶
- class BeforeTransformTextForPersistenceEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Html\ Event\ Before Transform Text For Persistence Event
Event that is fired before RteHtmlParser modified the HTML input from RTE editor to the database (for example transforming linebreaks)
- getHtmlContent ( ) ¶
-
- Returns
-
string
- setHtmlContent ( string $htmlContent) ¶
-
- param $htmlContent
-
the htmlContent
- getInitialHtmlContent ( ) ¶
-
- Returns
-
string
- getProcessingConfiguration ( ) ¶
-
- Returns
-
array