Index: typo3/sysext/rtehtmlarea/extensions/DefaultImage/class.tx_rtehtmlarea_defaultimage.php =================================================================== --- typo3/sysext/rtehtmlarea/extensions/DefaultImage/class.tx_rtehtmlarea_defaultimage.php (révision 10232) +++ typo3/sysext/rtehtmlarea/extensions/DefaultImage/class.tx_rtehtmlarea_defaultimage.php (copie de travail) @@ -45,6 +45,12 @@ 'image' => 'InsertImage', ); + public function main($parentObject) { + // Check if this should be enabled based on extension configuration and Page TSConfig + // The 'Minimal' and 'Typical' default configurations include Page TSConfig that removes images on the way to the database + return parent::main($parentObject) + && !($this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['allowedAttribs'] == '0' && $this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['rmTagIfNoAttrib'] == '1'); + } /** * Return JS configuration of the htmlArea plugins registered by the extension * Index: typo3/sysext/rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_typo3image.php =================================================================== --- typo3/sysext/rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_typo3image.php (révision 10232) +++ typo3/sysext/rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_typo3image.php (copie de travail) @@ -46,9 +46,12 @@ ); public function main($parentObject) { - // Check if this should be enabled based on Page TSConfig - return parent::main($parentObject) && !$this->thisConfig['disableTYPO3Browsers'] - && !(is_array( $this->thisConfig['buttons.']) && is_array($this->thisConfig['buttons.']['image.']) && is_array($this->thisConfig['buttons.']['image.']['TYPO3Browser.']) && $this->thisConfig['buttons.']['image.']['TYPO3Browser.']['disabled']); + // Check if this should be enabled based on extension configuration and Page TSConfig + // The 'Minimal' and 'Typical' default configurations include Page TSConfig that removes images on the way to the database + return parent::main($parentObject) + && !($this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['allowedAttribs'] == '0' && $this->thisConfig['proc.']['entryHTMLparser_db.']['tags.']['img.']['rmTagIfNoAttrib'] == '1') + && !$this->thisConfig['disableTYPO3Browsers'] + && !$this->thisConfig['buttons.']['image.']['TYPO3Browser.']['disabled']; } /**