Bug #61048
closedusing images in RTE doesn't prevent deleting
0%
Description
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
data-htmlarea-file-uid="1234" data-htmlarea-file-table="sys_file"
but the reference is not visible for images in file list
Files
Updated by Nikola Stojiljković almost 10 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...
Updated by Gerrit Code Review almost 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32412
Updated by Gerrit Code Review almost 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32412
Updated by Oliver Hader almost 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset e26961c87c9cca07b7fa7c2b0a924e06dc9a09aa.