using images in RTE doesn't prevent deleting
Using images in content elements and even linking it (see #46686) will create a reference and prevent the image from being deleted via file list module.
This is not working currently if you use images inside the RTE field.
It will use FAL and generate data attributes like
but the reference is not visible for images in file list
#1 Updated by Nikola Stojiljković almost 6 years ago
This works in TYPO3 core's standard tt_content element, but usually gets miss-configured for the custom records. You need to specify rtehtmlarea_images in the softref configuration. Sample:
'exclude' => 1, 'label' => 'LLL:EXT:ed_travel/Resources/Private/Language/locallang_db.xlf:tx_edtravel_domain_model_poi.description', 'config' => array( 'type' => 'text', 'cols' => 40, 'rows' => 15, 'eval' => 'trim', 'wizards' => array( 'RTE' => array( 'icon' => 'wizard_rte2.gif', 'notNewRecords'=> 1, 'RTEonly' => 1, 'script' => 'wizard_rte.php', 'title' => 'LLL:EXT:cms/locallang_ttc.:bodytext.W.RTE', 'type' => 'script' ) ), 'softref' => 'rtehtmlarea_images,typolink_tag,images,email[subst],url', ),
There's one bug though, when you try to delete an image which is referenced in RTE, the list of records which reference it will not display the ones with references from RTE:
I will push patch to gerrit tomorrow...