65 $clickenlarge = isset($this->cObj->parameters[
'data-htmlarea-clickenlarge']) ? $this->cObj->parameters[
'data-htmlarea-clickenlarge'] : 0;
68 $clickenlarge = isset($this->cObj->parameters[
'clickenlarge']) ? $this->cObj->parameters[
'clickenlarge'] : 0;
71 $fileTable = $this->cObj->parameters[
'data-htmlarea-file-table'];
72 $fileUid = $this->cObj->parameters[
'data-htmlarea-file-uid'];
74 $fileObject = $fileFactory->getFileObject($fileUid);
75 $filePath = $fileObject->getForLocalProcessing(FALSE);
79 $path = $this->cObj->parameters[
'src'];
80 $magicFolder = $fileFactory->getFolderObjectFromCombinedIdentifier(
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'RTE_imageStorageDir']);
81 if ($magicFolder instanceof \
TYPO3\CMS\Core\Resource\
Folder) {
82 $magicFolderPath = $magicFolder->getPublicUrl();
83 $pathPre = $magicFolderPath .
'RTEmagicC_';
86 $pI = pathinfo(substr($path, strlen($pathPre)));
87 $filename = substr($pI[
'basename'], 0, -strlen((
'.' . $pI[
'extension'])));
88 $file = $magicFolderPath .
'RTEmagicP_' . $filename;
90 $file = $this->cObj->parameters[
'src'];
95 unset($this->cObj->parameters[
'data-htmlarea-clickenlarge']);
97 unset($this->cObj->parameters[
'clickenlarge']);
98 unset($this->cObj->parameters[
'allParams']);
100 if ($clickenlarge && is_array(
$conf[
'imageLinkWrap.'])) {
101 $theImage = $file ?
$GLOBALS[
'TSFE']->tmpl->getFileName($file) :
'';
103 $this->cObj->parameters[
'origFile'] = $theImage;
104 if ($this->cObj->parameters[
'title']) {
105 $conf[
'imageLinkWrap.'][
'title'] = $this->cObj->parameters[
'title'];
107 if ($this->cObj->parameters[
'alt']) {
108 $conf[
'imageLinkWrap.'][
'alt'] = $this->cObj->parameters[
'alt'];
110 $content = $this->cObj->imageLinkWrap($content, $theImage,
$conf[
'imageLinkWrap.']);
111 $content = $this->cObj->stdWrap($content,
$conf[
'stdWrap.']);
static implodeAttributes(array $arr, $xhtmlSafe=FALSE, $dontOmitBlankAttribs=FALSE)
static isFirstPartOfStr($str, $partStr)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static stripPathSitePrefix($path)
render_clickenlarge($content, $conf)