Index: typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php
===================================================================
--- typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (révision 8070)
+++ typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php (copie de travail)
@@ -1154,6 +1154,10 @@
foreach ($this->hookObjects as $hookObject) {
$allowedItems = $hookObject->addAllowedItems($allowedItems);
}
+ // Remove tab "image" if there is no current image
+ if ($this->act !== 'image') {
+ $allowedItems = array_diff($allowedItems, array('image'));
+ }
// Remove options according to RTE configuration
if (is_array($this->buttonConfig['options.']) && $this->buttonConfig['options.']['removeItems']) {
$allowedItems = array_diff($allowedItems, t3lib_div::trimExplode(',', $this->buttonConfig['options.']['removeItems'], 1));