Project

General

Profile

Bug #24717 ยป rtehtmlarea_bugfix_17205_trunk.patch

Administrator Admin, 2011-01-22 06:10

View differences:

typo3/sysext/rtehtmlarea/extensions/DefaultImage/class.tx_rtehtmlarea_defaultimage.php (copie de travail)
'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
*
typo3/sysext/rtehtmlarea/extensions/TYPO3Image/class.tx_rtehtmlarea_typo3image.php (copie de travail)
);
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'];
}
/**
    (1-1/1)