Bug #61048

using images in RTE doesn't prevent deleting

Added by Joh. Feustel almost 6 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-08-19
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

wrong_list_of_file_references.png View (6.9 KB) Nikola Stojiljković, 2014-08-26 16:33


Related issues

Duplicates TYPO3 Core - Bug #58913: Missing and invalid warnings on referenced files Closed 2014-05-19

History

#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...

#2 Updated by Gerrit Code Review almost 6 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

#3 Updated by Gerrit Code Review almost 6 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

#4 Updated by Oliver Hader over 5 years ago

  • Status changed from Under Review to Resolved

#5 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF