Project

General

Profile

Actions

Bug #61048

closed

using images in RTE doesn't prevent deleting

Added by Joh. Feustel over 10 years ago. Updated about 6 years ago.

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

0%

Estimated time:
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


Files

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

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #58913: Missing and invalid warnings on referenced filesClosed2014-05-19

Actions
Actions #1

Updated by Nikola Stojiljković about 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...

Actions #2

Updated by Gerrit Code Review about 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Oliver Hader about 10 years ago

  • Status changed from Under Review to Resolved
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF