BeforeTransformTextForPersistenceEvent

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\BeforeTransformTextForPersistenceEvent

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