Feature #20287 ยป 5283.diff
class.tx_rtehtmlarea_browse_links.php (Arbeitskopie) | ||
---|---|---|
foreach ($this->RTEProperties['classesAnchor.'] as $label => $conf) {
|
||
if (in_array($conf['class'], $classesAnchorArray)) {
|
||
$classesAnchor['all'][] = $conf['class'];
|
||
if (in_array($conf['type'], $this->anchorTypes)) {
|
||
$classesAnchor[$conf['type']][] = $conf['class'];
|
||
if (is_array($this->thisConfig['classesAnchor.']) && is_array($this->thisConfig['classesAnchor.']['default.']) && $this->thisConfig['classesAnchor.']['default.'][$conf['type']] == $conf['class']) {
|
||
$this->classesAnchorDefault[$conf['type']] = $conf['class'];
|
||
if ($conf['titleText']) {
|
||
$this->classesAnchorDefaultTitle[$conf['type']] = $this->getLLContent(trim($conf['titleText']));
|
||
}
|
||
if ($conf['target']) {
|
||
$this->classesAnchorDefaultTarget[$conf['type']] = trim($conf['target']);
|
||
}
|
||
}
|
||
if (stristr($conf['type'],',')) {
|
||
$types = explode(',',$conf['type']);
|
||
} else {
|
||
$types[] = $conf['type'];
|
||
}
|
||
foreach($types as $confType) {
|
||
$confType = trim($confType);
|
||
if (in_array($confType, $this->anchorTypes)) {
|
||
$classesAnchor[$confType][] = $conf['class'];
|
||
if (is_array($this->thisConfig['classesAnchor.']) && is_array($this->thisConfig['classesAnchor.']['default.']) && $this->thisConfig['classesAnchor.']['default.'][$confType] == $conf['class']) {
|
||
$this->classesAnchorDefault[$confType] = $conf['class'];
|
||
if ($conf['titleText']) {
|
||
$this->classesAnchorDefaultTitle[$confType] = $this->getLLContent(trim($conf['titleText']));
|
||
}
|
||
if ($conf['target']) {
|
||
$this->classesAnchorDefaultTarget[$confType] = trim($conf['target']);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if ($titleReadOnly && $conf['titleText']) {
|
||
$this->classesAnchorClassTitle[$conf['class']] = $this->classesAnchorDefaultTitle[$conf['type']] = $this->getLLContent(trim($conf['titleText']));
|
||
}
|